25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

MqttConnectionValidatorContext.cs 698 B

12345678910111213141516171819202122232425
  1. using MQTTnet.Protocol;
  2. namespace MQTTnet.Server
  3. {
  4. public class MqttConnectionValidatorContext
  5. {
  6. public MqttConnectionValidatorContext(string clientId, string username, string password, MqttApplicationMessage willMessage)
  7. {
  8. ClientId = clientId;
  9. Username = username;
  10. Password = password;
  11. WillMessage = willMessage;
  12. }
  13. public string ClientId { get; }
  14. public string Username { get; }
  15. public string Password { get; }
  16. public MqttApplicationMessage WillMessage { get; }
  17. public MqttConnectReturnCode ReturnCode { get; set; } = MqttConnectReturnCode.ConnectionAccepted;
  18. }
  19. }