Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 
 
 

26 rindas
698 B

  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. }