Click or drag to resize

FactoryGeneratorGenerateFactoryTDelegate Method (IComponentContext, IEnumerableParameter)

Generates a factory delegate that closes over the provided context.

Namespace:  Autofac.Features.GeneratedFactories
Assembly:  Autofac (in Autofac.dll) Version: 6.0.0+39696a967e8826f7f1ebc8c1ff4523c9dd75abe0
Syntax
public TDelegate GenerateFactory<TDelegate>(
	IComponentContext context,
	IEnumerable<Parameter> parameters
)
where TDelegate : class

Parameters

context
Type: AutofacIComponentContext
The context in which the factory will be used.
parameters
Type: System.Collections.GenericIEnumerableParameter
Parameters provided to the resolve call for the factory itself.

Type Parameters

TDelegate

[Missing <typeparam name="TDelegate"/> documentation for "M:Autofac.Features.GeneratedFactories.FactoryGenerator.GenerateFactory``1(Autofac.IComponentContext,System.Collections.Generic.IEnumerable{Autofac.Core.Parameter})"]

Return Value

Type: TDelegate
A factory delegate that will work within the context.
See Also