You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

26 rivejä
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. }