Click or drag to resize

IServiceMiddlewareSourceRegistrarRegisterServiceMiddlewareSource Method

Adds a middleware source to the container.

Namespace:  Autofac.Core.Registration
Assembly:  Autofac (in Autofac.dll) Version: 6.0.0+39696a967e8826f7f1ebc8c1ff4523c9dd75abe0
Syntax
IServiceMiddlewareSourceRegistrar RegisterServiceMiddlewareSource(
	IServiceMiddlewareSource serviceMiddlewareSource
)

Parameters

serviceMiddlewareSource
Type: Autofac.Core.RegistrationIServiceMiddlewareSource
The middleware source to add.

Return Value

Type: IServiceMiddlewareSourceRegistrar
The IServiceMiddlewareSourceRegistrar to allow additional chained middleware source registrations.
See Also