C# 클래스 Hiro.Compilers.GetInstanceMethodImplementor

Represents the default implementation of the IGetInstanceMethodImplementor interface.
상속: IGetInstanceMethodImplementor
파일 보기 프로젝트 열기: philiplaureano/Hiro

공개 메소드들

메소드 설명
DefineGetInstanceMethod ( Mono.Cecil.TypeDefinition containerType, Mono.Cecil.ModuleDefinition module, Mono.Cecil.MethodDefinition getServiceHash, FieldDefinition jumpTargetField, IImplementation>.IDictionary serviceMap ) : void

Defines the IMicroContainer.GetInstance method implementation for the container type.

GetInstanceMethodImplementor ( ) : System

Initializes a new instance of the GetInstanceMethodImplementor class.

GetInstanceMethodImplementor ( IServiceInitializer initializer ) : System

Initializes a new instance of the GetInstanceMethodImplementor class.

보호된 메소드들

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

Emits the instructions that will instantiate the target service.

비공개 메소드들

메소드 설명
DefineServices ( IImplementation>.IDictionary serviceMap, Mono.Cecil.MethodDefinition getInstanceMethod, FieldDefinition jumpTargetField, Mono.Cecil.MethodDefinition getServiceHash, Mono.Cecil.Cil.ILProcessor il ) : void

Defines the instructions that create each service type in the serviceMap.

메소드 상세

DefineGetInstanceMethod() 공개 메소드

Defines the IMicroContainer.GetInstance method implementation for the container type.
public DefineGetInstanceMethod ( Mono.Cecil.TypeDefinition containerType, Mono.Cecil.ModuleDefinition module, Mono.Cecil.MethodDefinition getServiceHash, FieldDefinition jumpTargetField, IImplementation>.IDictionary serviceMap ) : void
containerType Mono.Cecil.TypeDefinition The container type.
module Mono.Cecil.ModuleDefinition The target module.
getServiceHash Mono.Cecil.MethodDefinition The GetServiceHash method.
jumpTargetField Mono.Cecil.FieldDefinition The field that will store the jump target indexes.
serviceMap IImplementation>.IDictionary The service map that contains the list of existing services.
리턴 void

EmitService() 보호된 메소드

Emits the instructions that will instantiate the target service.
protected EmitService ( Mono.Cecil.MethodDefinition getInstanceMethod, IDependency dependency, IImplementation implementation, IImplementation>.IDictionary serviceMap ) : void
getInstanceMethod Mono.Cecil.MethodDefinition The method that will instantiate the target type.
dependency IDependency The target dependency
implementation IImplementation The implementation that will instantiate the dependency.
serviceMap IImplementation>.IDictionary The service map that contains the list of dependencies in the application.
리턴 void

GetInstanceMethodImplementor() 공개 메소드

Initializes a new instance of the GetInstanceMethodImplementor class.
public GetInstanceMethodImplementor ( ) : System
리턴 System

GetInstanceMethodImplementor() 공개 메소드

Initializes a new instance of the GetInstanceMethodImplementor class.
public GetInstanceMethodImplementor ( IServiceInitializer initializer ) : System
initializer IServiceInitializer The instance that will initialize the target given services.
리턴 System