Method AddOpenBehavior
- Namespace
- Mediarion
- Assembly
- Mediarion.Extensions.DependencyInjection.dll
AddOpenBehavior(Type)
Adds an open-generic pipeline behaviour that wraps every request.
public MediarionServiceConfiguration AddOpenBehavior(Type behaviourType)
Parameters
behaviourTypeTypeThe open generic behaviour type.
Returns
- MediarionServiceConfiguration
This, to carry on configuring.
AddOpenBehavior(Type, ServiceLifetime)
Adds an open-generic pipeline behaviour with a lifetime of its own.
public MediarionServiceConfiguration AddOpenBehavior(Type behaviourType, ServiceLifetime lifetime)
Parameters
behaviourTypeTypeThe open generic behaviour type.
lifetimeServiceLifetimeHow long an instance lives.
Returns
- MediarionServiceConfiguration
This, to carry on configuring.