Skip to main content
Version: 3.x

MiddlewareConfiguration constructor

Initializes a new instance of the MiddlewareConfiguration class.

public MiddlewareConfiguration(Type type, MiddlewareLifetime lifetime, 
Guid? instanceContainerId = default)
parameterdescription
typeThe middleware type
lifetimeThe middleware instance lifetime
instanceContainerIdThe instance container ID used to get the correct container when creating the instance

See Also