mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-16 01:03:01 +08:00
26 lines
873 B
C#
26 lines
873 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Threading.Tasks;
|
|
using MQTTnet.Client;
|
|
|
|
namespace MQTTnet.Extensions.ManagedClient
|
|
{
|
|
public interface IManagedMqttClient : IApplicationMessageReceiver, IApplicationMessagePublisher, IDisposable
|
|
{
|
|
bool IsStarted { get; }
|
|
bool IsConnected { get; }
|
|
|
|
event EventHandler<MqttClientConnectedEventArgs> Connected;
|
|
event EventHandler<MqttClientDisconnectedEventArgs> Disconnected;
|
|
|
|
event EventHandler<ApplicationMessageProcessedEventArgs> ApplicationMessageProcessed;
|
|
|
|
Task StartAsync(IManagedMqttClientOptions options);
|
|
Task StopAsync();
|
|
|
|
Task SubscribeAsync(IEnumerable<TopicFilter> topicFilters);
|
|
Task UnsubscribeAsync(IEnumerable<string> topics);
|
|
|
|
Task PublishAsync(ManagedMqttApplicationMessage applicationMessages);
|
|
}
|
|
} |