Click or drag to resize

AggregateServiceGeneratorCreateInstance Method (Type, IComponentContext)

Generate an aggregate service instance that will resolve its types from context.

Namespace:  Autofac.Extras.AggregateService
Assembly:  Autofac.Extras.AggregateService (in Autofac.Extras.AggregateService.dll) Version: 6.0.0+9a0ae3a0a675c94a74f543addfa4c99a731e7032
Syntax
public static Object CreateInstance(
	Type interfaceType,
	IComponentContext context
)

Parameters

interfaceType
Type: SystemType
The interface type for the aggregate service.
context
Type: AutofacIComponentContext
The component context from where types will be resolved.

Return Value

Type: Object
The aggregate service instance.
Exceptions
ExceptionCondition
ArgumentExceptionThrown if interfaceType is not an interface.
See Also