C# 클래스 Unity.TypedFactories.Implementation.FactoryInterceptor

Defines an IInterceptor implementation which implements the factory methods, by passing the method arguments by name into a specified concrete type's constructor.
상속: IInterceptor
파일 보기 프로젝트 열기: PombeirP/Unity.TypedFactories

공개 메소드들

메소드 설명
FactoryInterceptor ( IUnityContainer container, Type concreteType, string name ) : System

Initializes a new instance of the FactoryInterceptor class.

보호된 메소드들

메소드 설명
GetResolverOverridesFor ( IInvocation invocation ) : IEnumerable

Builds a list consisting of one ParameterOverride instance for each argument of the method in invocation.

ResolveArray ( IInvocation invocation ) : void

Resolve an array of objects based on the context described in invocation.

ResolveObject ( IInvocation invocation ) : void

Resolve an object based on the context described in invocation.

비공개 메소드들

메소드 설명
IInterceptor ( IInvocation invocation ) : void

메소드 상세

FactoryInterceptor() 공개 메소드

Initializes a new instance of the FactoryInterceptor class.
/// Thrown when the injected is null. ///
public FactoryInterceptor ( IUnityContainer container, Type concreteType, string name ) : System
container IUnityContainer /// The Unity container. ///
concreteType System.Type /// The concrete class which will be constructed by the factory. ///
name string Name that will be used to request the type.
리턴 System

GetResolverOverridesFor() 보호된 정적인 메소드

Builds a list consisting of one ParameterOverride instance for each argument of the method in invocation.
protected static GetResolverOverridesFor ( IInvocation invocation ) : IEnumerable
invocation IInvocation /// The invocation details. ///
리턴 IEnumerable

ResolveArray() 보호된 메소드

Resolve an array of objects based on the context described in invocation.
protected ResolveArray ( IInvocation invocation ) : void
invocation IInvocation The invocation context.
리턴 void

ResolveObject() 보호된 메소드

Resolve an object based on the context described in invocation.
protected ResolveObject ( IInvocation invocation ) : void
invocation IInvocation The invocation context.
리턴 void