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.
 
 
 
 

25 lines
907 B

  1. // Licensed to the .NET Foundation under one or more agreements.
  2. // The .NET Foundation licenses this file to you under the MIT license.
  3. // See the LICENSE file in the project root for more information.
  4. using System;
  5. namespace MQTTnet.Extensions.ManagedClient
  6. {
  7. public sealed class ApplicationMessageProcessedEventArgs : EventArgs
  8. {
  9. public ApplicationMessageProcessedEventArgs(ManagedMqttApplicationMessage applicationMessage, Exception exception)
  10. {
  11. ApplicationMessage = applicationMessage ?? throw new ArgumentNullException(nameof(applicationMessage));
  12. Exception = exception;
  13. }
  14. public ManagedMqttApplicationMessage ApplicationMessage { get; }
  15. /// <summary>
  16. /// Then this is _null_ the message was processed successfully without any error.
  17. /// </summary>
  18. public Exception Exception { get; }
  19. }
  20. }