IOT Dash
|
Public Member Functions | |
abstract bool | HasSubscribersOnTopic (string topic) |
MqttApplicationMessage? | GetRetained (string topic) |
override Task | Send (string channel, object sender, MqttApplicationMessage msg) |
Task | Send (string topic, object sender, string content) |
![]() | |
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 | |
abstract Task | MqttSend (string channel, object sender, MqttApplicationMessage msg) |
![]() | |
abstract void | SubscribeInternal (TChannelKey msgChannel, ITarget< TChannelKey, TMsg > target) |
Additional Inherited Members | |
![]() | |
abstract int | TargetCount [get] |
abstract IEnumerable< TChannelKey > | Keys [get] |
Specialisation of the AbstractMediator<TChannelKey, TMsg> where the channel key is of type string and the message type is MqttApplicationMessage.
|
inline |
Return last message, null if there was no mesagge.
topic |
|
pure virtual |
Check if there are any subscribers on given topic .
topic | The topic to check. |
true
if there are any subscribers.Implemented in IotDash.Services.Mqtt.Implementation.MqttNet_Mediator, and Tests.Adapters.TestMqttMediator.
|
protectedpure virtual |
Implemented in IotDash.Services.Mqtt.Implementation.MqttNet_Mediator.
|
inline |
Sends the provided application messages.
channel | |
sender | |
msg |
|
inline |
Builds a new application message with default parameters and broadcasts it.
topic | MQTT topic of the message. |
sender | Sender of the event. |
content | Payload of the message. |