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