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
behaviourTypesIEnumerable<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
behaviourTypesIEnumerable<Type>The open generic behaviour types.
lifetimeServiceLifetimeHow long an instance lives.
Returns
- MediarionServiceConfiguration
This, to carry on configuring.