Interface IClientSession
The session of a client connected to the IInMemoryMqttBroker.
Namespace: Silverback.Messaging.Broker.Mqtt.Mocks
Assembly: Silverback.Integration.MQTT.Testing.dll
Syntax
public interface IClientSession
Methods
GetPendingMessagesCount()
Gets the number of pending messages ready to be pushed to the client.
Declaration
int GetPendingMessagesCount()
Returns
| Type | Description |
|---|---|
| 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.
Declaration
int GetPendingMessagesCount(string topicName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | topicName | The topic name. |
Returns
| Type | Description |
|---|---|
| int | The number of pending messages. |