C# Класс Revenj.Extensibility.Autofac.Core.Activators.Delegate.DelegateActivator

Activate instances using a delegate.
Наследование: InstanceActivator, IInstanceActivator
Показать файл Открыть проект

Открытые методы

Метод Описание
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