Class ApizrMediationRegistryBase
- Namespace
- Apizr.Mediation.Configuring.Registry
- Assembly
- Apizr.Integrations.MediatR.dll
Registry options available for extended registrations with mediation
public abstract class ApizrMediationRegistryBase : IApizrMediationEnumerableRegistry, IEnumerable<KeyValuePair<Type, Func<IApizrMediatorBase>>>, IEnumerable
- Inheritance
-
ApizrMediationRegistryBase
- Implements
- Derived
- Inherited Members
Constructors
ApizrMediationRegistryBase()
protected ApizrMediationRegistryBase()
Fields
ConcurrentRegistry
protected readonly IDictionary<Type, Func<IApizrMediatorBase>> ConcurrentRegistry
Field Value
Properties
Count
Mediators count
public int Count { get; }
Property Value
Methods
ContainsCrudMediatorFor<T>()
Check if registry contains a mediator for T entity type
public bool ContainsCrudMediatorFor<T>() where T : class
Returns
Type Parameters
TThe entity type to manage
ContainsCrudMediatorFor<T, TKey>()
Check if registry contains a mediator for T entity type with TKey key type
public bool ContainsCrudMediatorFor<T, TKey>() where T : class
Returns
Type Parameters
TThe entity type to manage
TKeyThe entity key type
ContainsCrudMediatorFor<T, TKey, TReadAllResult>()
Check if registry contains a mediator for T entity type with TKey key type and TReadAllResult ReadAll result type
public bool ContainsCrudMediatorFor<T, TKey, TReadAllResult>() where T : class
Returns
Type Parameters
TThe entity type to manage
TKeyThe entity key type
TReadAllResultThe ReadAll result type
ContainsCrudMediatorFor<T, TKey, TReadAllResult, TReadAllParams>()
Check if registry contains a mediator for T entity type with TKey key type,
TReadAllResult ReadAll result type and TReadAllParams ReadAll params type
public bool ContainsCrudMediatorFor<T, TKey, TReadAllResult, TReadAllParams>() where T : class
Returns
Type Parameters
TThe entity type to manage
TKeyThe entity key type
TReadAllResultThe ReadAll result type
TReadAllParamsThe ReadAll params type
ContainsMediatorFor<TWebApi>()
Check if registry contains a mediator for TWebApi api type
public bool ContainsMediatorFor<TWebApi>()
Returns
Type Parameters
TWebApiThe api type
GetCrudMediatorFor<T>()
Get a Crud mediator instance for an entity type
public IApizrCrudMediator<T, int, IEnumerable<T>, IDictionary<string, object>> GetCrudMediatorFor<T>() where T : class
Returns
- IApizrCrudMediator<T, int, IEnumerable<T>, IDictionary<string, object>>
Type Parameters
TThe managed entity type
GetCrudMediatorFor<T, TKey>()
Get a Crud mediator instance for an entity type with a specific key type
public IApizrCrudMediator<T, TKey, IEnumerable<T>, IDictionary<string, object>> GetCrudMediatorFor<T, TKey>() where T : class
Returns
- IApizrCrudMediator<T, TKey, IEnumerable<T>, IDictionary<string, object>>
Type Parameters
TThe managed entity type
TKeyThe entity's key type
GetCrudMediatorFor<T, TKey, TReadAllResult>()
Get a Crud mediator instance for an entity type with a specific key type and ReadAll result type
public IApizrCrudMediator<T, TKey, TReadAllResult, IDictionary<string, object>> GetCrudMediatorFor<T, TKey, TReadAllResult>() where T : class
Returns
- IApizrCrudMediator<T, TKey, TReadAllResult, IDictionary<string, object>>
Type Parameters
TThe managed entity type
TKeyThe entity's key type
TReadAllResultThe ReadAll request result type
GetCrudMediatorFor<T, TKey, TReadAllResult, TReadAllParams>()
Get a Crud mediator instance for an entity type with a specific key type, ReadAll result type and ReadAll params type
public IApizrCrudMediator<T, TKey, TReadAllResult, TReadAllParams> GetCrudMediatorFor<T, TKey, TReadAllResult, TReadAllParams>() where T : class
Returns
- IApizrCrudMediator<T, TKey, TReadAllResult, TReadAllParams>
Type Parameters
TThe managed entity type
TKeyThe entity's key type
TReadAllResultThe ReadAll request result type
TReadAllParamsThe ReadAll request params type
GetEnumerator()
Get factory enumerator
public IEnumerator<KeyValuePair<Type, Func<IApizrMediatorBase>>> GetEnumerator()
Returns
GetMediatorFor<TWebApi>()
Get an api mediator instance
public IApizrMediator<TWebApi> GetMediatorFor<TWebApi>()
Returns
- IApizrMediator<TWebApi>
Type Parameters
TWebApiThe managed api type
TryGetCrudMediatorFor<T>(out IApizrCrudMediator<T, int, IEnumerable<T>, IDictionary<string, object>>)
Try to get a Crud mediator instance for an entity type
public bool TryGetCrudMediatorFor<T>(out IApizrCrudMediator<T, int, IEnumerable<T>, IDictionary<string, object>> mediator) where T : class
Parameters
mediatorIApizrCrudMediator<T, int, IEnumerable<T>, IDictionary<string, object>>
Returns
Type Parameters
TThe managed entity type
TryGetCrudMediatorFor<T, TKey>(out IApizrCrudMediator<T, TKey, IEnumerable<T>, IDictionary<string, object>>)
Try to get a Crud mediator instance for an entity type with a specific key type
public bool TryGetCrudMediatorFor<T, TKey>(out IApizrCrudMediator<T, TKey, IEnumerable<T>, IDictionary<string, object>> mediator) where T : class
Parameters
mediatorIApizrCrudMediator<T, TKey, IEnumerable<T>, IDictionary<string, object>>
Returns
Type Parameters
TThe managed entity type
TKeyThe entity's key type
TryGetCrudMediatorFor<T, TKey, TReadAllResult>(out IApizrCrudMediator<T, TKey, TReadAllResult, IDictionary<string, object>>)
Try to get a Crud mediator instance for an entity type with a specific key type and ReadAll result type
public bool TryGetCrudMediatorFor<T, TKey, TReadAllResult>(out IApizrCrudMediator<T, TKey, TReadAllResult, IDictionary<string, object>> mediator) where T : class
Parameters
mediatorIApizrCrudMediator<T, TKey, TReadAllResult, IDictionary<string, object>>
Returns
Type Parameters
TThe managed entity type
TKeyThe entity's key type
TReadAllResultThe ReadAll request result type
TryGetCrudMediatorFor<T, TKey, TReadAllResult, TReadAllParams>(out IApizrCrudMediator<T, TKey, TReadAllResult, TReadAllParams>)
Try to get a Crud mediator instance for an entity type with a specific key type, ReadAll result type and ReadAll params type
public bool TryGetCrudMediatorFor<T, TKey, TReadAllResult, TReadAllParams>(out IApizrCrudMediator<T, TKey, TReadAllResult, TReadAllParams> mediator) where T : class
Parameters
mediatorIApizrCrudMediator<T, TKey, TReadAllResult, TReadAllParams>
Returns
Type Parameters
TThe managed entity type
TKeyThe entity's key type
TReadAllResultThe ReadAll request result type
TReadAllParamsThe ReadAll request params type
TryGetMediatorFor<TWebApi>(out IApizrMediator<TWebApi>)
Try to get an api mediator instance
public bool TryGetMediatorFor<TWebApi>(out IApizrMediator<TWebApi> mediator)
Parameters
mediatorIApizrMediator<TWebApi>
Returns
Type Parameters
TWebApiThe managed api type