Table of Contents

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

IDictionary<Type, Func<IApizrMediatorBase>>

Properties

Count

Mediators count

public int Count { get; }

Property Value

int

Methods

ContainsCrudMediatorFor<T>()

Check if registry contains a mediator for T entity type

public bool ContainsCrudMediatorFor<T>() where T : class

Returns

bool

Type Parameters

T

The 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

bool

Type Parameters

T

The entity type to manage

TKey

The 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

bool

Type Parameters

T

The entity type to manage

TKey

The entity key type

TReadAllResult

The 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

bool

Type Parameters

T

The entity type to manage

TKey

The entity key type

TReadAllResult

The ReadAll result type

TReadAllParams

The ReadAll params type

ContainsMediatorFor<TWebApi>()

Check if registry contains a mediator for TWebApi api type

public bool ContainsMediatorFor<TWebApi>()

Returns

bool

Type Parameters

TWebApi

The 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

T

The 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

T

The managed entity type

TKey

The 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

T

The managed entity type

TKey

The entity's key type

TReadAllResult

The 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

T

The managed entity type

TKey

The entity's key type

TReadAllResult

The ReadAll request result type

TReadAllParams

The ReadAll request params type

GetEnumerator()

Get factory enumerator

public IEnumerator<KeyValuePair<Type, Func<IApizrMediatorBase>>> GetEnumerator()

Returns

IEnumerator<KeyValuePair<Type, Func<IApizrMediatorBase>>>

GetMediatorFor<TWebApi>()

Get an api mediator instance

public IApizrMediator<TWebApi> GetMediatorFor<TWebApi>()

Returns

IApizrMediator<TWebApi>

Type Parameters

TWebApi

The 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

mediator IApizrCrudMediator<T, int, IEnumerable<T>, IDictionary<string, object>>

Returns

bool

Type Parameters

T

The 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

mediator IApizrCrudMediator<T, TKey, IEnumerable<T>, IDictionary<string, object>>

Returns

bool

Type Parameters

T

The managed entity type

TKey

The 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

mediator IApizrCrudMediator<T, TKey, TReadAllResult, IDictionary<string, object>>

Returns

bool

Type Parameters

T

The managed entity type

TKey

The entity's key type

TReadAllResult

The 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

mediator IApizrCrudMediator<T, TKey, TReadAllResult, TReadAllParams>

Returns

bool

Type Parameters

T

The managed entity type

TKey

The entity's key type

TReadAllResult

The ReadAll request result type

TReadAllParams

The 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

mediator IApizrMediator<TWebApi>

Returns

bool

Type Parameters

TWebApi

The managed api type