mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-16 01:03:01 +08:00
26 lines
698 B
C#
26 lines
698 B
C#
using MQTTnet.Protocol;
|
|
|
|
namespace MQTTnet.Server
|
|
{
|
|
public class MqttConnectionValidatorContext
|
|
{
|
|
public MqttConnectionValidatorContext(string clientId, string username, string password, MqttApplicationMessage willMessage)
|
|
{
|
|
ClientId = clientId;
|
|
Username = username;
|
|
Password = password;
|
|
WillMessage = willMessage;
|
|
}
|
|
|
|
public string ClientId { get; }
|
|
|
|
public string Username { get; }
|
|
|
|
public string Password { get; }
|
|
|
|
public MqttApplicationMessage WillMessage { get; }
|
|
|
|
public MqttConnectReturnCode ReturnCode { get; set; } = MqttConnectReturnCode.ConnectionAccepted;
|
|
}
|
|
}
|