C# Класс Revenj.Extensibility.Autofac.Core.Activators.Reflection.ReflectionActivator

Uses reflection to activate instances of a type.
Наследование: InstanceActivator, IInstanceActivator
Показать файл Открыть проект

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

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

ReflectionActivator ( Type implementationType, IConstructorFinder constructorFinder, IConstructorSelector constructorSelector, IEnumerable configuredParameters, IEnumerable configuredProperties ) : System

Create an activator for the provided type.

Приватные методы

Метод Описание
GetBindingFailureMessage ( IEnumerable constructorBindings ) : string
GetConstructorBindings ( IComponentContext context, IEnumerable parameters, IEnumerable _defaultParameters, ConstructorInfo constructorInfo ) : Revenj.Extensibility.Autofac.Core.Activators.Reflection.ConstructorParameterBinding[]
InjectProperties ( object instance, IComponentContext context ) : void

Описание методов

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

ReflectionActivator() публичный Метод

Create an activator for the provided type.
public ReflectionActivator ( Type implementationType, IConstructorFinder constructorFinder, IConstructorSelector constructorSelector, IEnumerable configuredParameters, IEnumerable configuredProperties ) : System
implementationType System.Type Type to activate.
constructorFinder IConstructorFinder Constructor finder.
constructorSelector IConstructorSelector Constructor selector.
configuredParameters IEnumerable Parameters configured explicitly for this instance.
configuredProperties IEnumerable Properties configured explicitly for this instance.
Результат System