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.
 
 
 
 

21 lines
600 B

  1. using System;
  2. using MQTTnet.Client;
  3. namespace MQTTnet.Extensions.ManagedClient
  4. {
  5. public sealed class ConnectingFailedEventArgs : EventArgs
  6. {
  7. public ConnectingFailedEventArgs(MqttClientConnectResult connectResult, Exception exception)
  8. {
  9. ConnectResult = connectResult;
  10. Exception = exception;
  11. }
  12. /// <summary>
  13. /// This is null when the connection was failing and the server was not reachable.
  14. /// </summary>
  15. public MqttClientConnectResult ConnectResult { get; }
  16. public Exception Exception { get; }
  17. }
  18. }