C# 클래스 Revenj.Extensibility.Autofac.Core.Activators.Delegate.DelegateActivator

Activate instances using a delegate.
상속: InstanceActivator, IInstanceActivator
파일 보기 프로젝트 열기: ngs-doo/revenj

공개 메소드들

메소드 설명
DelegateActivator ( Type limitType, Func activationFunction ) : System

Create a delegate activator.

GetFactory ( IComponentContext context, IEnumerable parameters ) : Func

Activate an instance in the provided context.

The context parameter here should probably be ILifetimeScope in order to reveal Disposer, but will wait until implementing a concrete use case to make the decision

메소드 상세

DelegateActivator() 공개 메소드

Create a delegate activator.
public DelegateActivator ( Type limitType, Func activationFunction ) : System
limitType System.Type The most specific type to which activated instances can be cast.
activationFunction Func Activation delegate.
리턴 System

GetFactory() 공개 메소드

Activate an instance in the provided context.
The context parameter here should probably be ILifetimeScope in order to reveal Disposer, but will wait until implementing a concrete use case to make the decision
public GetFactory ( IComponentContext context, IEnumerable parameters ) : Func
context IComponentContext Context in which to activate instances.
parameters IEnumerable Parameters to the instance.
리턴 Func