|
IOT Dash
|


Public Member Functions | |
| 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) |
Protected Member Functions | |
| override void | SubscribeInternal (TChannelKey msgChannel, ITarget< TChannelKey, TMsg > target) |
| abstract void | SubscribeInternal (TChannelKey msgChannel, ITarget< TChannelKey, TMsg > target) |
Properties | |
| override int | TargetCount [get] |
| override IEnumerable< TChannelKey > | Keys [get] |
Properties inherited from IotDash.Domain.Mediator.AbstractMediator< TChannelKey, TMsg > | |
| abstract int | TargetCount [get] |
| abstract IEnumerable< TChannelKey > | Keys [get] |
Manages subscribers and mediates messages between them.
| TChannelKey | Type of channel identifier. |
| TMsg | Type of message. |
| TChannelKey | : | notnull | |
| TMsg | : | notnull |
|
inlinevirtual |
A list of all subscribers of channel key .
| key | The key identifying that channel. |
Implements IotDash.Domain.Mediator.AbstractMediator< TChannelKey, TMsg >.
|
inlineprotectedvirtual |
Internal, ISubscription unaware method prepared for inheritor implementation. It is here to prevent the inheritor from forgetting to properly create the ISubscription.
| msgChannel | |
| target |
Implements IotDash.Domain.Mediator.AbstractMediator< TChannelKey, TMsg >.
|
inlinevirtual |
Number of ITarget<TChannelKey, TMsg> subscribed to channel key .
| key | The channel to filter by. |
Implements IotDash.Domain.Mediator.AbstractMediator< TChannelKey, TMsg >.
|
inlinevirtual |