Table of Contents

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

behaviourType Type

The 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

behaviourType Type

The behaviour type, which may be an open generic.

lifetime ServiceLifetime

How 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

serviceType Type

The contract to register it against.

implementationType Type

The behaviour type.

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

serviceType Type

The contract to register it against.

implementationType Type

The behaviour type.

lifetime ServiceLifetime

How 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

TBehaviour

The behaviour type.

AddStreamBehavior<TBehaviour>(ServiceLifetime)

Adds a streaming pipeline behaviour with a lifetime of its own.

public MediarionServiceConfiguration AddStreamBehavior<TBehaviour>(ServiceLifetime lifetime)

Parameters

lifetime ServiceLifetime

How long an instance lives.

Returns

MediarionServiceConfiguration

This, to carry on configuring.

Type Parameters

TBehaviour

The 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

TService

The contract to register it against.

TImplementation

The 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

lifetime ServiceLifetime

How long an instance lives.

Returns

MediarionServiceConfiguration

This, to carry on configuring.

Type Parameters

TService

The contract to register it against.

TImplementation

The behaviour type.