C# 클래스 Ninject.Activation.Providers.StandardProvider

The standard provider for types, which activates instances via a IPipeline.
상속: IProvider
파일 보기 프로젝트 열기: ninject/Ninject 1 사용 예제들

공개 메소드들

메소드 설명
AssignProviderCallback ( IBindingConfiguration bindingConfiguration, Type prototype ) : void

Assigns the provider callback to the building configuration.

Create ( IContext context ) : object

Creates an instance within the specified context.

GetCreationCallback ( Type prototype, ConstructorInfo constructor ) : IProvider>.Func

Gets a callback that creates an instance of the StandardProvider for the specified type and constructor.

GetCreationCallback ( Type prototype, ISelector selector ) : IProvider>.Func

Gets a callback that creates an instance of the StandardProvider for the specified type.

GetImplementationType ( Type service ) : Type

Gets the implementation type that the provider will activate an instance of for the specified service.

GetValue ( IContext context, ITarget target ) : object

Gets the value to inject into the specified target.

StandardProvider ( Type type, IConstructorScorer constructorScorer ) : System

Initializes a new instance of the StandardProvider class.

비공개 메소드들

메소드 설명
DetermineConstructorInjectionDirective ( IContext context ) : ConstructorInjectionDirective

메소드 상세

AssignProviderCallback() 공개 정적인 메소드

Assigns the provider callback to the building configuration.
public static AssignProviderCallback ( IBindingConfiguration bindingConfiguration, Type prototype ) : void
bindingConfiguration IBindingConfiguration /// The building configuration. ///
prototype System.Type /// The prototype. ///
리턴 void

Create() 공개 메소드

Creates an instance within the specified context.
public Create ( IContext context ) : object
context IContext The context.
리턴 object

GetCreationCallback() 공개 정적인 메소드

Gets a callback that creates an instance of the StandardProvider for the specified type and constructor.
public static GetCreationCallback ( Type prototype, ConstructorInfo constructor ) : IProvider>.Func
prototype System.Type The prototype the provider instance will create.
constructor System.Reflection.ConstructorInfo The constructor.
리턴 IProvider>.Func

GetCreationCallback() 공개 정적인 메소드

Gets a callback that creates an instance of the StandardProvider for the specified type.
public static GetCreationCallback ( Type prototype, ISelector selector ) : IProvider>.Func
prototype System.Type The prototype the provider instance will create.
selector ISelector The selector.
리턴 IProvider>.Func

GetImplementationType() 공개 메소드

Gets the implementation type that the provider will activate an instance of for the specified service.
public GetImplementationType ( Type service ) : Type
service System.Type The service in question.
리턴 System.Type

GetValue() 공개 메소드

Gets the value to inject into the specified target.
public GetValue ( IContext context, ITarget target ) : object
context IContext The context.
target ITarget The target.
리턴 object

StandardProvider() 공개 메소드

Initializes a new instance of the StandardProvider class.
public StandardProvider ( Type type, IConstructorScorer constructorScorer ) : System
type System.Type The type (or prototype) of instances the provider creates.
constructorScorer IConstructorScorer The constructor scorer component.
리턴 System