Skip to content
This repository has been archived by the owner on Jul 20, 2023. It is now read-only.

Commit

Permalink
Remove IfInjector
Browse files Browse the repository at this point in the history
  • Loading branch information
MinhThienDX committed Feb 9, 2020
1 parent 1cabfca commit 7a0d699
Show file tree
Hide file tree
Showing 23 changed files with 0 additions and 679 deletions.
77 changes: 0 additions & 77 deletions IocPerformance/Adapters/IfInjectorContainerAdapter.cs

This file was deleted.

6 changes: 0 additions & 6 deletions IocPerformance/Classes/Complex/Complex.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,14 @@

namespace IocPerformance.Classes.Complex
{
[IfInjector.ImplementedBy(typeof(Complex1))]
public interface IComplex1
{
}

[IfInjector.ImplementedBy(typeof(Complex2))]
public interface IComplex2
{
}

[IfInjector.ImplementedBy(typeof(Complex2))]
public interface IComplex3
{
}
Expand All @@ -28,7 +25,6 @@ public class Complex1 : IComplex1
[ImportingConstructor]
[System.Composition.ImportingConstructor]
[Stiletto.Inject]
[IfInjector.Inject]
public Complex1(
IFirstService firstService,
ISecondService secondService,
Expand Down Expand Up @@ -90,7 +86,6 @@ public class Complex2 : IComplex2
[ImportingConstructor]
[System.Composition.ImportingConstructor]
[Stiletto.Inject]
[IfInjector.Inject]
public Complex2(
IFirstService firstService,
ISecondService secondService,
Expand Down Expand Up @@ -152,7 +147,6 @@ public class Complex3 : IComplex3
[ImportingConstructor]
[System.Composition.ImportingConstructor]
[Stiletto.Inject]
[IfInjector.Inject]
public Complex3(
IFirstService firstService,
ISecondService secondService,
Expand Down
2 changes: 0 additions & 2 deletions IocPerformance/Classes/Complex/FirstService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,12 @@

namespace IocPerformance.Classes.Complex
{
[IfInjector.ImplementedBy(typeof(FirstService))]
public interface IFirstService
{
}

[Export(typeof(IFirstService)), PartCreationPolicy(CreationPolicy.Shared)]
[MEF2Attr.Export(typeof(IFirstService))]
[IfInjector.Singleton]
public class FirstService : IFirstService
{
[Stiletto.Inject]
Expand Down
2 changes: 0 additions & 2 deletions IocPerformance/Classes/Complex/SecondService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,12 @@

namespace IocPerformance.Classes.Complex
{
[IfInjector.ImplementedBy(typeof(SecondService))]
public interface ISecondService
{
}

[Export(typeof(ISecondService)), PartCreationPolicy(CreationPolicy.Shared)]
[MEF2Attr.Export(typeof(ISecondService))]
[IfInjector.Singleton]
public class SecondService : ISecondService
{
[Stiletto.Inject]
Expand Down
1 change: 0 additions & 1 deletion IocPerformance/Classes/Complex/SubObjectOne.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

namespace IocPerformance.Classes.Complex
{
[IfInjector.ImplementedBy(typeof(SubObjectOne))]
public interface ISubObjectOne
{
}
Expand Down
1 change: 0 additions & 1 deletion IocPerformance/Classes/Complex/SubObjectThree.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

namespace IocPerformance.Classes.Complex
{
[IfInjector.ImplementedBy(typeof(SubObjectThree))]
public interface ISubObjectThree
{
}
Expand Down
1 change: 0 additions & 1 deletion IocPerformance/Classes/Complex/SubObjectTwo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

namespace IocPerformance.Classes.Complex
{
[IfInjector.ImplementedBy(typeof(SubObjectTwo))]
public interface ISubObjectTwo
{
}
Expand Down
2 changes: 0 additions & 2 deletions IocPerformance/Classes/Complex/ThirdService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,12 @@

namespace IocPerformance.Classes.Complex
{
[IfInjector.ImplementedBy(typeof(ThirdService))]
public interface IThirdService
{
}

[Export(typeof(IThirdService)), PartCreationPolicy(CreationPolicy.Shared)]
[MEF2Attr.Export(typeof(IThirdService))]
[IfInjector.Singleton]
public class ThirdService : IThirdService
{
[Stiletto.Inject]
Expand Down
1 change: 0 additions & 1 deletion IocPerformance/Classes/Generics/IGenericInterface.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
namespace IocPerformance.Classes.Generics
{
[IfInjector.ImplementedBy(typeof(GenericExport<>))]
public interface IGenericInterface<T>
{
T Value { get; set; }
Expand Down
21 changes: 0 additions & 21 deletions IocPerformance/Classes/Properties/ComplexPropertyObject.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,16 @@

namespace IocPerformance.Classes.Properties
{
[IfInjector.ImplementedBy(typeof(ComplexPropertyObject1))]
public interface IComplexPropertyObject1
{
void Verify(string containerName);
}

[IfInjector.ImplementedBy(typeof(ComplexPropertyObject2))]
public interface IComplexPropertyObject2
{
void Verify(string containerName);
}

[IfInjector.ImplementedBy(typeof(ComplexPropertyObject3))]
public interface IComplexPropertyObject3
{
void Verify(string containerName);
Expand Down Expand Up @@ -54,7 +51,6 @@ public static int Instances
[NinjectAttr.Inject]
[UnityAttr.Dependency]
[Stiletto.Inject]
[IfInjector.Inject]
[StashBoxAttr.Dependency]
[MvvmCrossAttr.MvxInject]
public virtual IServiceA ServiceA { get; set; }
Expand All @@ -66,7 +62,6 @@ public static int Instances
[NinjectAttr.Inject]
[UnityAttr.Dependency]
[Stiletto.Inject]
[IfInjector.Inject]
[StashBoxAttr.Dependency]
[MvvmCrossAttr.MvxInject]
public virtual IServiceB ServiceB { get; set; }
Expand All @@ -78,7 +73,6 @@ public static int Instances
[NinjectAttr.Inject]
[UnityAttr.Dependency]
[Stiletto.Inject]
[IfInjector.Inject]
[StashBoxAttr.Dependency]
[MvvmCrossAttr.MvxInject]
public virtual IServiceC ServiceC { get; set; }
Expand All @@ -90,7 +84,6 @@ public static int Instances
[NinjectAttr.Inject]
[UnityAttr.Dependency]
[Stiletto.Inject]
[IfInjector.Inject]
[StashBoxAttr.Dependency]
[MvvmCrossAttr.MvxInject]
public virtual ISubObjectA SubObjectA { get; set; }
Expand All @@ -102,7 +95,6 @@ public static int Instances
[NinjectAttr.Inject]
[UnityAttr.Dependency]
[Stiletto.Inject]
[IfInjector.Inject]
[StashBoxAttr.Dependency]
[MvvmCrossAttr.MvxInject]
public virtual ISubObjectB SubObjectB { get; set; }
Expand All @@ -114,7 +106,6 @@ public static int Instances
[NinjectAttr.Inject]
[UnityAttr.Dependency]
[Stiletto.Inject]
[IfInjector.Inject]
[StashBoxAttr.Dependency]
[MvvmCrossAttr.MvxInject]
public virtual ISubObjectC SubObjectC { get; set; }
Expand Down Expand Up @@ -185,7 +176,6 @@ public static int Instances
[NinjectAttr.Inject]
[UnityAttr.Dependency]
[Stiletto.Inject]
[IfInjector.Inject]
[StashBoxAttr.Dependency]
[MvvmCrossAttr.MvxInject]
public virtual IServiceA ServiceA { get; set; }
Expand All @@ -197,7 +187,6 @@ public static int Instances
[NinjectAttr.Inject]
[UnityAttr.Dependency]
[Stiletto.Inject]
[IfInjector.Inject]
[StashBoxAttr.Dependency]
[MvvmCrossAttr.MvxInject]
public virtual IServiceB ServiceB { get; set; }
Expand All @@ -209,7 +198,6 @@ public static int Instances
[NinjectAttr.Inject]
[UnityAttr.Dependency]
[Stiletto.Inject]
[IfInjector.Inject]
[StashBoxAttr.Dependency]
[MvvmCrossAttr.MvxInject]
public virtual IServiceC ServiceC { get; set; }
Expand All @@ -221,7 +209,6 @@ public static int Instances
[NinjectAttr.Inject]
[UnityAttr.Dependency]
[Stiletto.Inject]
[IfInjector.Inject]
[StashBoxAttr.Dependency]
[MvvmCrossAttr.MvxInject]
public virtual ISubObjectA SubObjectA { get; set; }
Expand All @@ -233,7 +220,6 @@ public static int Instances
[NinjectAttr.Inject]
[UnityAttr.Dependency]
[Stiletto.Inject]
[IfInjector.Inject]
[StashBoxAttr.Dependency]
[MvvmCrossAttr.MvxInject]
public virtual ISubObjectB SubObjectB { get; set; }
Expand All @@ -245,7 +231,6 @@ public static int Instances
[NinjectAttr.Inject]
[UnityAttr.Dependency]
[Stiletto.Inject]
[IfInjector.Inject]
[StashBoxAttr.Dependency]
[MvvmCrossAttr.MvxInject]
public virtual ISubObjectC SubObjectC { get; set; }
Expand Down Expand Up @@ -316,7 +301,6 @@ public static int Instances
[NinjectAttr.Inject]
[UnityAttr.Dependency]
[Stiletto.Inject]
[IfInjector.Inject]
[StashBoxAttr.Dependency]
[MvvmCrossAttr.MvxInject]
public virtual IServiceA ServiceA { get; set; }
Expand All @@ -328,7 +312,6 @@ public static int Instances
[NinjectAttr.Inject]
[UnityAttr.Dependency]
[Stiletto.Inject]
[IfInjector.Inject]
[StashBoxAttr.Dependency]
[MvvmCrossAttr.MvxInject]
public virtual IServiceB ServiceB { get; set; }
Expand All @@ -340,7 +323,6 @@ public static int Instances
[NinjectAttr.Inject]
[UnityAttr.Dependency]
[Stiletto.Inject]
[IfInjector.Inject]
[StashBoxAttr.Dependency]
[MvvmCrossAttr.MvxInject]
public virtual IServiceC ServiceC { get; set; }
Expand All @@ -352,7 +334,6 @@ public static int Instances
[NinjectAttr.Inject]
[UnityAttr.Dependency]
[Stiletto.Inject]
[IfInjector.Inject]
[StashBoxAttr.Dependency]
[MvvmCrossAttr.MvxInject]
public virtual ISubObjectA SubObjectA { get; set; }
Expand All @@ -364,7 +345,6 @@ public static int Instances
[NinjectAttr.Inject]
[UnityAttr.Dependency]
[Stiletto.Inject]
[IfInjector.Inject]
[StashBoxAttr.Dependency]
[MvvmCrossAttr.MvxInject]
public virtual ISubObjectB SubObjectB { get; set; }
Expand All @@ -376,7 +356,6 @@ public static int Instances
[NinjectAttr.Inject]
[UnityAttr.Dependency]
[Stiletto.Inject]
[IfInjector.Inject]
[StashBoxAttr.Dependency]
[MvvmCrossAttr.MvxInject]
public virtual ISubObjectC SubObjectC { get; set; }
Expand Down
2 changes: 0 additions & 2 deletions IocPerformance/Classes/Properties/ServiceA.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

namespace IocPerformance.Classes.Properties
{
[IfInjector.ImplementedBy(typeof(ServiceA))]
public interface IServiceA
{
}
Expand All @@ -12,7 +11,6 @@ public interface IServiceA
[MEFAttr.PartCreationPolicy(MEFAttr.CreationPolicy.Shared)]
[MEF2Attr.ExportAttribute(typeof(IServiceA))]
[MEF2Attr.Shared]
[IfInjector.Singleton]
public class ServiceA : IServiceA
{
[Stiletto.Inject]
Expand Down
2 changes: 0 additions & 2 deletions IocPerformance/Classes/Properties/ServiceB.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

namespace IocPerformance.Classes.Properties
{
[IfInjector.ImplementedBy(typeof(ServiceB))]
public interface IServiceB
{
}
Expand All @@ -12,7 +11,6 @@ public interface IServiceB
[MEFAttr.PartCreationPolicy(MEFAttr.CreationPolicy.Shared)]
[MEF2Attr.ExportAttribute(typeof(IServiceB))]
[MEF2Attr.Shared]
[IfInjector.Singleton]
public class ServiceB : IServiceB
{
[Stiletto.Inject]
Expand Down
Loading

0 comments on commit 7a0d699

Please sign in to comment.