Method AddRequestPreProcessor
- Namespace
- Mediarion
- Assembly
- Mediarion.Extensions.DependencyInjection.dll
AddRequestPreProcessor(Type)
Adds a pre-processor, which may be an open generic.
public MediarionServiceConfiguration AddRequestPreProcessor(Type processorType)
Parameters
processorTypeTypeThe processor type.
Returns
- MediarionServiceConfiguration
This, to carry on configuring.
AddRequestPreProcessor<TProcessor>()
Adds a pre-processor.
public MediarionServiceConfiguration AddRequestPreProcessor<TProcessor>()
Returns
- MediarionServiceConfiguration
This, to carry on configuring.
Type Parameters
TProcessorThe processor type.
AddRequestPreProcessor(Type, ServiceLifetime)
Adds a pre-processor with a lifetime of its own.
public MediarionServiceConfiguration AddRequestPreProcessor(Type processorType, ServiceLifetime lifetime)
Parameters
processorTypeTypeThe processor type, which may be an open generic.
lifetimeServiceLifetimeHow long an instance lives.
Returns
- MediarionServiceConfiguration
This, to carry on configuring.
AddRequestPreProcessor(Type, Type)
Adds a pre-processor against the one contract named.
public MediarionServiceConfiguration AddRequestPreProcessor(Type serviceType, Type implementationType)
Parameters
Returns
- MediarionServiceConfiguration
This, to carry on configuring.
AddRequestPreProcessor(Type, Type, ServiceLifetime)
Adds a pre-processor against the one contract named, with a lifetime.
public MediarionServiceConfiguration AddRequestPreProcessor(Type serviceType, Type implementationType, ServiceLifetime lifetime)
Parameters
serviceTypeTypeThe contract to register it against.
implementationTypeTypeThe processor type.
lifetimeServiceLifetimeHow long an instance lives.
Returns
- MediarionServiceConfiguration
This, to carry on configuring.
AddRequestPreProcessor<TProcessor>(ServiceLifetime)
Adds a pre-processor with a lifetime of its own.
public MediarionServiceConfiguration AddRequestPreProcessor<TProcessor>(ServiceLifetime lifetime)
Parameters
lifetimeServiceLifetimeHow long an instance lives.
Returns
- MediarionServiceConfiguration
This, to carry on configuring.
Type Parameters
TProcessorThe processor type.
AddRequestPreProcessor<TService, TImplementation>()
Adds a pre-processor against the one contract named.
public MediarionServiceConfiguration AddRequestPreProcessor<TService, TImplementation>()
Returns
- MediarionServiceConfiguration
This, to carry on configuring.
Type Parameters
TServiceThe contract to register it against.
TImplementationThe processor type.
AddRequestPreProcessor<TService, TImplementation>(ServiceLifetime)
Adds a pre-processor against the one contract named, with a lifetime.
public MediarionServiceConfiguration AddRequestPreProcessor<TService, TImplementation>(ServiceLifetime lifetime)
Parameters
lifetimeServiceLifetimeHow long an instance lives.
Returns
- MediarionServiceConfiguration
This, to carry on configuring.
Type Parameters
TServiceThe contract to register it against.
TImplementationThe processor type.