|
override async Task | Send (TChannelKey ch, object? sender, TMsg msg) |
|
override void | Unsubscribe (ISubscription< TChannelKey, TMsg > sub) |
|
override IEnumerable< ITarget< TChannelKey, TMsg > > | GetChannelCopy (TChannelKey key) |
|
override int | TargetCountOnChannel (TChannelKey key) |
|
Public Member Functions inherited from IotDash.Domain.Mediator.AbstractMediator< TChannelKey, TMsg > |
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) |
|
Manages subscribers and mediates messages between them.
- Template Parameters
-
TChannelKey | Type of channel identifier. |
TMsg | Type of message. |
- Type Constraints
-
TChannelKey | : | notnull | |
TMsg | : | notnull | |