Table of Contents

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

behaviourType Type

The 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

behaviourType Type

The open generic behaviour type.

lifetime ServiceLifetime

How long an instance lives.

Returns

MediarionServiceConfiguration

This, to carry on configuring.