Table of Contents

Method AddOpenBehaviors

Namespace
Mediarion
Assembly
Mediarion.Extensions.DependencyInjection.dll

AddOpenBehaviors(IEnumerable<Type>)

Adds several open-generic pipeline behaviours, in the order given.

public MediarionServiceConfiguration AddOpenBehaviors(IEnumerable<Type> behaviourTypes)

Parameters

behaviourTypes IEnumerable<Type>

The open generic behaviour types.

Returns

MediarionServiceConfiguration

This, to carry on configuring.

AddOpenBehaviors(IEnumerable<Type>, ServiceLifetime)

Adds several open-generic pipeline behaviours, in the order given.

public MediarionServiceConfiguration AddOpenBehaviors(IEnumerable<Type> behaviourTypes, ServiceLifetime lifetime)

Parameters

behaviourTypes IEnumerable<Type>

The open generic behaviour types.

lifetime ServiceLifetime

How long an instance lives.

Returns

MediarionServiceConfiguration

This, to carry on configuring.