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

Activate instances using a delegate.
Inheritance: InstanceActivator, IInstanceActivator
Afficher le fichier Open project: ngs-doo/revenj

Méthodes publiques

Méthode 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 méthode

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.
Résultat System

GetFactory() public méthode

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.
Résultat Func