您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 

20 行
663 B

  1. using System;
  2. namespace MQTTnet.Extensions.ManagedClient
  3. {
  4. public class ApplicationMessageProcessedEventArgs : EventArgs
  5. {
  6. public ApplicationMessageProcessedEventArgs(ManagedMqttApplicationMessage applicationMessage, Exception exception)
  7. {
  8. ApplicationMessage = applicationMessage ?? throw new ArgumentNullException(nameof(applicationMessage));
  9. Exception = exception;
  10. }
  11. public ManagedMqttApplicationMessage ApplicationMessage { get; }
  12. public Exception Exception { get; }
  13. public bool HasFailed => Exception != null;
  14. public bool HasSucceeded => Exception == null;
  15. }
  16. }