C# 클래스 Hiro.Implementations.PropertyInjectionCall

Represents an IImplementation type that adds property injection capabilities to other IImplementation instances.
상속: IImplementation
파일 보기 프로젝트 열기: philiplaureano/Hiro 1 사용 예제들

공개 메소드들

메소드 설명
Emit ( IDependency dependency, IImplementation>.IDictionary serviceMap, Mono.Cecil.MethodDefinition targetMethod ) : void

Emits the instructions that will instantiate the current implementation.

GetMissingDependencies ( IDependencyContainer map ) : IEnumerable

Gets the list of missing dependencies from the current implementation.

GetRequiredDependencies ( IDependencyContainer map ) : IEnumerable

Returns the dependencies required by the current implementation.

PropertyInjectionCall ( IStaticImplementation implementation ) : System

Initializes a new instance of the PropertyInjector class.

PropertyInjectionCall ( IStaticImplementation implementation, bool>.Func propertyFilter, IDependency>.Func propertyDependencyResolver ) : System

Initializes a new instance of the PropertyInjector class.

비공개 메소드들

메소드 설명
EmitPropertySetter ( IImplementation>.IDictionary serviceMap, Mono.Cecil.MethodDefinition targetMethod, Mono.Cecil.ModuleDefinition module, Mono.Cecil.Cil.ILProcessor il, PropertyInfo property, IDependency curentDependency ) : void

Emits the instructions that will instantiate each property value and assign it to the target property.

메소드 상세

Emit() 공개 메소드

Emits the instructions that will instantiate the current implementation.
public Emit ( IDependency dependency, IImplementation>.IDictionary serviceMap, Mono.Cecil.MethodDefinition targetMethod ) : void
dependency IDependency The dependency that describes the service to be instantiated.
serviceMap IImplementation>.IDictionary The service map that contains the list of dependencies in the application.
targetMethod Mono.Cecil.MethodDefinition The target method.
리턴 void

GetMissingDependencies() 공개 메소드

Gets the list of missing dependencies from the current implementation.
public GetMissingDependencies ( IDependencyContainer map ) : IEnumerable
map IDependencyContainer The implementation map.
리턴 IEnumerable

GetRequiredDependencies() 공개 메소드

Returns the dependencies required by the current implementation.
public GetRequiredDependencies ( IDependencyContainer map ) : IEnumerable
map IDependencyContainer The implementation map.
리턴 IEnumerable

PropertyInjectionCall() 공개 메소드

Initializes a new instance of the PropertyInjector class.
public PropertyInjectionCall ( IStaticImplementation implementation ) : System
implementation IStaticImplementation The target implementation that will instantiate the service type.
리턴 System

PropertyInjectionCall() 공개 메소드

Initializes a new instance of the PropertyInjector class.
public PropertyInjectionCall ( IStaticImplementation implementation, bool>.Func propertyFilter, IDependency>.Func propertyDependencyResolver ) : System
implementation IStaticImplementation The target implementation that will instantiate the service type.
propertyFilter bool>.Func The functor that determines which properties will be injected.
propertyDependencyResolver IDependency>.Func The functor that determines the dependencies that will be injected into each property.
리턴 System