|
void | Subscribe< TMsg > (ITarget< Type, TMsg > target, out ISubscription subscription) |
|
void | Subscribe< TMsg > (ITarget< Type, TMsg > target, SubscriptionGuard guard) |
|
Task | Send< TMsg > (object? sender, TMsg message) |
|
Public Member Functions inherited from IotDash.Domain.Mediator.AbstractMediator< Type, object > |
virtual void | Subscribe (TChannelKey msgChannel, ITarget< TChannelKey, TMsg > target, out ISubscription subscription) |
|
virtual void | Subscribe (TChannelKey msgChannel, ITarget< TChannelKey, TMsg > target, SubscriptionGuard guard) |
|
abstract int | TargetCountOnChannel (TChannelKey key) |
|
abstract IEnumerable< ITarget< TChannelKey, TMsg > > | GetChannelCopy (TChannelKey key) |
|
abstract void | Unsubscribe (ISubscription< TChannelKey, TMsg > subscription) |
|
abstract Task | Send (TChannelKey msgChannel, object sender, TMsg msg) |
|
This class is a specialisation of the AbstractMediator<TChannelKey, TMsg> which mediates objects over channels differentiated by the objects' types. It provides nicer API than the parent class.