C# Class Revenj.Extensibility.Autofac.Core.Activators.Reflection.ReflectionActivator

Uses reflection to activate instances of a type.
Inheritance: InstanceActivator, IInstanceActivator
Mostrar archivo Open project: ngs-doo/revenj

Public Methods

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

Private Methods

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

Method Details

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

ReflectionActivator() public method

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