Method AddStreamBehavior
- Namespace
- Mediarion
- Assembly
- Mediarion.Extensions.DependencyInjection.dll
AddStreamBehavior(Type)
Adds a streaming pipeline behaviour, which may be an open generic.
public MediarionServiceConfiguration AddStreamBehavior(Type behaviourType)
Parameters
behaviourTypeTypeThe behaviour type.
Returns
- MediarionServiceConfiguration
This, to carry on configuring.
Remarks
Nothing happens until AddMediarionStreaming is called, which is where the
streaming contracts live. Calling this and not that registers nothing, the same way
a stream handler in the assembly is not registered until then.
AddStreamBehavior(Type, ServiceLifetime)
Adds a streaming pipeline behaviour with a lifetime of its own.
public MediarionServiceConfiguration AddStreamBehavior(Type behaviourType, ServiceLifetime lifetime)
Parameters
behaviourTypeTypeThe behaviour type, which may be an open generic.
lifetimeServiceLifetimeHow long an instance lives.
Returns
- MediarionServiceConfiguration
This, to carry on configuring.
AddStreamBehavior(Type, Type)
Adds a streaming pipeline behaviour against the one contract named.
public MediarionServiceConfiguration AddStreamBehavior(Type serviceType, Type implementationType)
Parameters
Returns
- MediarionServiceConfiguration
This, to carry on configuring.
AddStreamBehavior(Type, Type, ServiceLifetime)
Adds a streaming pipeline behaviour against the one contract named, with a lifetime.
public MediarionServiceConfiguration AddStreamBehavior(Type serviceType, Type implementationType, ServiceLifetime lifetime)
Parameters
serviceTypeTypeThe contract to register it against.
implementationTypeTypeThe behaviour type.
lifetimeServiceLifetimeHow long an instance lives.
Returns
- MediarionServiceConfiguration
This, to carry on configuring.
AddStreamBehavior<TBehaviour>()
Adds a streaming pipeline behaviour.
public MediarionServiceConfiguration AddStreamBehavior<TBehaviour>()
Returns
- MediarionServiceConfiguration
This, to carry on configuring.
Type Parameters
TBehaviourThe behaviour type.
AddStreamBehavior<TBehaviour>(ServiceLifetime)
Adds a streaming pipeline behaviour with a lifetime of its own.
public MediarionServiceConfiguration AddStreamBehavior<TBehaviour>(ServiceLifetime lifetime)
Parameters
lifetimeServiceLifetimeHow long an instance lives.
Returns
- MediarionServiceConfiguration
This, to carry on configuring.
Type Parameters
TBehaviourThe behaviour type.
AddStreamBehavior<TService, TImplementation>()
Adds a streaming pipeline behaviour against the one contract named.
public MediarionServiceConfiguration AddStreamBehavior<TService, TImplementation>()
Returns
- MediarionServiceConfiguration
This, to carry on configuring.
Type Parameters
TServiceThe contract to register it against.
TImplementationThe behaviour type.
AddStreamBehavior<TService, TImplementation>(ServiceLifetime)
Adds a streaming pipeline behaviour against the one contract named, with a lifetime.
public MediarionServiceConfiguration AddStreamBehavior<TService, TImplementation>(ServiceLifetime lifetime)
Parameters
lifetimeServiceLifetimeHow long an instance lives.
Returns
- MediarionServiceConfiguration
This, to carry on configuring.
Type Parameters
TServiceThe contract to register it against.
TImplementationThe behaviour type.