C# Class Revenj.Extensibility.Autofac.Core.Activators.Delegate.DelegateActivator

Activate instances using a delegate.
Inheritance: InstanceActivator, IInstanceActivator
Datei anzeigen Open project: ngs-doo/revenj

Public Methods

Method Description
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

Method Details

DelegateActivator() public method

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.
return System

GetFactory() public method

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.
return Func