OrderDelayWorkflowEndHandler.cs 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. using Hotline.FlowEngine.Notifications;
  2. using MediatR;
  3. using Hotline.EventBus;
  4. using Microsoft.Extensions.Logging;
  5. namespace Hotline.Application.Handlers.Order
  6. {
  7. [HandlerInject(AppScopes = EAppScope.LuZhou | EAppScope.YiBin)]
  8. public class OrderDelayWorkflowEndHandler : INotificationHandler<EndWorkflowNotify>
  9. {
  10. private readonly ILogger<OrderDelayWorkflowEndHandler> _logger;
  11. public OrderDelayWorkflowEndHandler(ILogger<OrderDelayWorkflowEndHandler> logger)
  12. {
  13. _logger = logger;
  14. }
  15. /// <summary>Handles a notification</summary>
  16. /// <param name="notification">The notification</param>
  17. /// <param name="cancellationToken">Cancellation token</param>
  18. public async Task Handle(EndWorkflowNotify notification, CancellationToken cancellationToken)
  19. {
  20. try
  21. {
  22. throw new NotImplementedException();
  23. }
  24. catch (Exception e)
  25. {
  26. _logger.LogError(e.Message);
  27. throw;
  28. }
  29. }
  30. }
  31. }