FactoryGeneratorGenerateFactory 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 Delegate GenerateFactory(
IComponentContext context,
IEnumerable<Parameter> parameters
)
Public Function GenerateFactory (
context As IComponentContext,
parameters As IEnumerable(Of Parameter)
) As Delegate
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.
Return Value
Type:
DelegateA factory delegate that will work within the context.
See Also