C# 클래스 Hiro.Implementations.SingletonType

Represents a service implementation that will be instantiated as a singleton instance.
상속: IStaticImplementation
파일 보기 프로젝트 열기: philiplaureano/Hiro

공개 메소드들

메소드 설명
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 that are required by the current implementation.

SingletonType ( IStaticImplementation implementation, ISingletonEmitter singletonEmitter ) : System

Initializes a new instance of the SingletonType class.

SingletonType ( System targetType, IDependencyContainer container, IConstructorResolver constructorResolver ) : System

Initializes a new instance of the SingletonType class.

SingletonType ( System targetType, IDependencyContainer container, IConstructorResolver constructorResolver, ISingletonEmitter singletonEmitter ) : System

Initializes a new instance of the SingletonType class.

메소드 상세

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 that are required by the current implementation.
public GetRequiredDependencies ( IDependencyContainer map ) : IEnumerable
map IDependencyContainer The implementation map.
리턴 IEnumerable

SingletonType() 공개 메소드

Initializes a new instance of the SingletonType class.
public SingletonType ( IStaticImplementation implementation, ISingletonEmitter singletonEmitter ) : System
implementation IStaticImplementation The implementation that will be used to emitting a service instance.
singletonEmitter ISingletonEmitter The emitter that will be responsible for instantiating the singleton implementation.
리턴 System

SingletonType() 공개 메소드

Initializes a new instance of the SingletonType class.
public SingletonType ( System targetType, IDependencyContainer container, IConstructorResolver constructorResolver ) : System
targetType System The concrete service type.
container IDependencyContainer The dependency container that contains the dependencies that will be used by the target type.
constructorResolver IConstructorResolver The constructor resolver.
리턴 System

SingletonType() 공개 메소드

Initializes a new instance of the SingletonType class.
public SingletonType ( System targetType, IDependencyContainer container, IConstructorResolver constructorResolver, ISingletonEmitter singletonEmitter ) : System
targetType System The concrete service type.
container IDependencyContainer The dependency container that contains the dependencies that will be used by the target type.
constructorResolver IConstructorResolver The constructor resolver.
singletonEmitter ISingletonEmitter The emitter that will be responsible for emitting the singleton implementation.
리턴 System