FailedNotificationHandler.cs 904 B

12345678910111213141516171819202122232425
  1. using Hotline.CallCenter.Calls;
  2. using Hotline.DI;
  3. using Hotline.Share.Notifications.NewRockCallCenter;
  4. using MediatR;
  5. namespace Hotline.Application.Handlers.CallCenter.CallState
  6. {
  7. [Injection(EventHandlerType = EEventHandlerType.CallCenter, Label = AppDefaults.CallCenterType.XunShi)]
  8. public class FailedNotificationHandler:INotificationHandler<FailedNotification>
  9. {
  10. private readonly ICallRepository _callRepository;
  11. private readonly ICallDetailRepository _callDetailRepository;
  12. public FailedNotificationHandler(ICallRepository callRepository, ICallDetailRepository callDetailRepository)
  13. {
  14. _callRepository = callRepository;
  15. _callDetailRepository = callDetailRepository;
  16. }
  17. public async Task Handle(FailedNotification notification, CancellationToken cancellationToken)
  18. {
  19. //TODO
  20. }
  21. }
  22. }