mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-16 01:03:01 +08:00
23 lines
749 B
C#
23 lines
749 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Threading.Tasks;
|
|
using MQTTnet.Adapter;
|
|
using MQTTnet.Packets;
|
|
|
|
namespace MQTTnet.Server
|
|
{
|
|
public interface IMqttClientSession : IDisposable
|
|
{
|
|
string ClientId { get; }
|
|
void FillStatus(MqttClientSessionStatus status);
|
|
|
|
void EnqueueApplicationMessage(MqttClientSession senderClientSession, MqttPublishPacket publishPacket);
|
|
void ClearPendingApplicationMessages();
|
|
|
|
Task RunAsync(MqttConnectPacket connectPacket, IMqttChannelAdapter adapter);
|
|
void Stop(MqttClientDisconnectType disconnectType);
|
|
|
|
Task SubscribeAsync(IList<TopicFilter> topicFilters);
|
|
Task UnsubscribeAsync(IList<string> topicFilters);
|
|
}
|
|
} |