Click or drag to resize

IServiceMiddlewareSourceProvideMiddleware Method

Called when a service is first resolved; implementations can add middleware to the service using the pipelineBuilder.

Namespace:  Autofac.Core.Registration
Assembly:  Autofac (in Autofac.dll) Version: 6.0.0+39696a967e8826f7f1ebc8c1ff4523c9dd75abe0
Syntax
void ProvideMiddleware(
	Service service,
	IComponentRegistryServices availableServices,
	IResolvePipelineBuilder pipelineBuilder
)

Parameters

service
Type: Autofac.CoreService
The service being resolved.
availableServices
Type: Autofac.CoreIComponentRegistryServices
Access to the set of available service registrations.
pipelineBuilder
Type: Autofac.Core.Resolving.PipelineIResolvePipelineBuilder
A pipeline builder that can be used to add middleware.
See Also