Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 
 
 

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