Interface IClientSession
- Namespace
- Silverback.Messaging.Broker.Mqtt.Mocks
- Assembly
- Silverback.Integration.MQTT.Testing.dll
The session of a client connected to the IInMemoryMqttBroker.
public interface IClientSession
Methods
GetPendingMessagesCount()
Gets the number of pending messages ready to be pushed to the client.
int GetPendingMessagesCount()
Returns
- int
The number of pending messages.
GetPendingMessagesCount(string)
Gets the number of pending messages ready to be pushed to the client from the specified topic.
int GetPendingMessagesCount(string topicName)
Parameters
topicNamestringThe topic name.
Returns
- int
The number of pending messages.