mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-18 10:26:11 +08:00
21 lines
741 B
C#
21 lines
741 B
C#
using System;
|
|
using System.Threading.Tasks;
|
|
using MQTTnet.Client.Receiving;
|
|
|
|
namespace MQTTnet
|
|
{
|
|
public interface IApplicationMessageReceiver
|
|
{
|
|
/// <summary>
|
|
/// Gets or sets the application message received handler that is fired every time a new message is received on the client's subscriptions.
|
|
/// Hint: Initialize handlers before you connect the client to avoid issues.
|
|
/// </summary>
|
|
IMqttApplicationMessageReceivedHandler ApplicationMessageReceivedHandler { get; set; }
|
|
|
|
/// <summary>
|
|
/// Fired when an application message was received.
|
|
/// </summary>
|
|
event Func<MqttApplicationMessageReceivedEventArgs, Task> ApplicationMessageReceivedAsync;
|
|
}
|
|
}
|