Class MediarionServiceConfiguration
- Namespace
- Mediarion
- Assembly
- Mediarion.Extensions.DependencyInjection.dll
What to register, and how.
public sealed class MediarionServiceConfiguration
- Inheritance
-
MediarionServiceConfiguration
- Inherited Members
Properties
- Assemblies
Gets the assemblies to scan for handlers.
- AutoRegisterRequestProcessors
Gets or sets whether scanning an assembly also picks up its pre- and post-processors. Off by default.
- Behaviours
Gets the pipeline behaviours, outermost first.
- Lifetime
Gets or sets the lifetime handlers are registered with. Transient by default.
- MaxGenericTypeParameters
Gets or sets how many type parameters an open generic handler may have before it is left alone. Ten by default.
- MaxGenericTypeRegistrations
Gets or sets how many closed handlers may be registered in total. 125,000 by default.
- MaxTypesClosing
Gets or sets how many types an open generic handler may be closed over. A hundred by default.
- MediatorImplementationType
Gets or sets the mediator to register. The one this library ships, when left alone.
- NotificationPublisher
Gets or sets how the handlers of one notification are run.
- NotificationPublisherType
Gets or sets the notification publisher to register by type rather than by instance.
- Processors
Gets the pre- and post-processors added by name.
- RegisterGenericHandlers
Gets or sets whether open generic handlers are closed over the scanned types and registered. Off by default.
- RegistrationTimeout
Gets or sets how long, in milliseconds, closing generic handlers may take before it stops. Fifteen seconds by default.
- RequestExceptionActionProcessorStrategy
Gets or sets when the exception actions run. Only for an exception no handler dealt with, by default.
- StreamBehaviours
Gets the streaming pipeline behaviours, outermost first.
- TypeEvaluator
Gets or sets which types the scan is allowed to register. Everything, by default.
Methods
- AddBehavior(Type)
Adds a pipeline behaviour, which may be an open generic.
- AddBehavior(Type, ServiceLifetime)
Adds a pipeline behaviour with a lifetime of its own.
- AddBehavior(Type, Type)
Adds a pipeline behaviour against the one contract named.
- AddBehavior(Type, Type, ServiceLifetime)
Adds a pipeline behaviour against the one contract named, with a lifetime.
- AddBehavior<TBehaviour>()
Adds a pipeline behaviour.
- AddBehavior<TBehaviour>(ServiceLifetime)
Adds a pipeline behaviour with a lifetime of its own.
- AddBehavior<TService, TImplementation>()
Adds a pipeline behaviour against the one contract named.
- AddBehavior<TService, TImplementation>(ServiceLifetime)
Adds a pipeline behaviour against the one contract named, with a lifetime.
- AddOpenBehavior(Type)
Adds an open-generic pipeline behaviour that wraps every request.
- AddOpenBehavior(Type, ServiceLifetime)
Adds an open-generic pipeline behaviour with a lifetime of its own.
- AddOpenBehaviors(IEnumerable<Type>)
Adds several open-generic pipeline behaviours, in the order given.
- AddOpenBehaviors(IEnumerable<Type>, ServiceLifetime)
Adds several open-generic pipeline behaviours, in the order given.
- AddOpenRequestPostProcessor(Type)
Adds an open-generic post-processor.
- AddOpenRequestPostProcessor(Type, ServiceLifetime)
Adds an open-generic post-processor with a lifetime of its own.
- AddOpenRequestPreProcessor(Type)
Adds an open-generic pre-processor.
- AddOpenRequestPreProcessor(Type, ServiceLifetime)
Adds an open-generic pre-processor with a lifetime of its own.
- AddOpenStreamBehavior(Type)
Adds an open-generic streaming pipeline behaviour.
- AddOpenStreamBehavior(Type, ServiceLifetime)
Adds an open-generic streaming pipeline behaviour with a lifetime of its own.
- AddRequestPostProcessor(Type)
Adds a post-processor, which may be an open generic.
- AddRequestPostProcessor(Type, ServiceLifetime)
Adds a post-processor with a lifetime of its own.
- AddRequestPostProcessor(Type, Type)
Adds a post-processor against the one contract named.
- AddRequestPostProcessor(Type, Type, ServiceLifetime)
Adds a post-processor against the one contract named, with a lifetime.
- AddRequestPostProcessor<TProcessor>()
Adds a post-processor.
- AddRequestPostProcessor<TProcessor>(ServiceLifetime)
Adds a post-processor with a lifetime of its own.
- AddRequestPostProcessor<TService, TImplementation>()
Adds a post-processor against the one contract named.
- AddRequestPostProcessor<TService, TImplementation>(ServiceLifetime)
Adds a post-processor against the one contract named, with a lifetime.
- AddRequestPreProcessor(Type)
Adds a pre-processor, which may be an open generic.
- AddRequestPreProcessor(Type, ServiceLifetime)
Adds a pre-processor with a lifetime of its own.
- AddRequestPreProcessor(Type, Type)
Adds a pre-processor against the one contract named.
- AddRequestPreProcessor(Type, Type, ServiceLifetime)
Adds a pre-processor against the one contract named, with a lifetime.
- AddRequestPreProcessor<TProcessor>()
Adds a pre-processor.
- AddRequestPreProcessor<TProcessor>(ServiceLifetime)
Adds a pre-processor with a lifetime of its own.
- AddRequestPreProcessor<TService, TImplementation>()
Adds a pre-processor against the one contract named.
- AddRequestPreProcessor<TService, TImplementation>(ServiceLifetime)
Adds a pre-processor against the one contract named, with a lifetime.
- AddStreamBehavior(Type)
Adds a streaming pipeline behaviour, which may be an open generic.
- AddStreamBehavior(Type, ServiceLifetime)
Adds a streaming pipeline behaviour with a lifetime of its own.
- AddStreamBehavior(Type, Type)
Adds a streaming pipeline behaviour against the one contract named.
- AddStreamBehavior(Type, Type, ServiceLifetime)
Adds a streaming pipeline behaviour against the one contract named, with a lifetime.
- AddStreamBehavior<TBehaviour>()
Adds a streaming pipeline behaviour.
- AddStreamBehavior<TBehaviour>(ServiceLifetime)
Adds a streaming pipeline behaviour with a lifetime of its own.
- AddStreamBehavior<TService, TImplementation>()
Adds a streaming pipeline behaviour against the one contract named.
- AddStreamBehavior<TService, TImplementation>(ServiceLifetime)
Adds a streaming pipeline behaviour against the one contract named, with a lifetime.
- RegisterServicesFromAssemblies(params Assembly[])
Scans several assemblies for handlers.
- RegisterServicesFromAssembly(Assembly)
Scans an assembly for handlers.
- RegisterServicesFromAssemblyContaining(Type)
Scans the assembly a type lives in.
- RegisterServicesFromAssemblyContaining<T>()
Scans the assembly a type lives in.