admin 2 år sedan
förälder
incheckning
0cb0020600

+ 2 - 7
src/CallCenter.Application/Handlers/FlowControl/ByeExtAndOuterOneNotificationHandler.cs

@@ -1,11 +1,9 @@
-using CacheManager.Core.Logging;
-using CallCenter.Caches;
+using CallCenter.Caches;
 using CallCenter.Calls;
 using CallCenter.Notifications;
 using CallCenter.Realtimes;
 using CallCenter.Share.Enums;
 using MediatR;
-using Microsoft.Extensions.Logging;
 
 namespace CallCenter.Application.Handlers
 {
@@ -15,15 +13,13 @@ namespace CallCenter.Application.Handlers
         private readonly ICallDetailRepository _callDetailRepository;
         private readonly IUserCacheManager _userCacheManager;
         private readonly IRealtimeService _realtimeService;
-        private readonly ILogger<ByeExtAndOuterOneNotificationHandler> _logger;
 
-        public ByeExtAndOuterOneNotificationHandler(ICallRepository callRepository, ICallDetailRepository callDetailRepository,IUserCacheManager userCacheManager, IRealtimeService realtimeService,ILogger<ByeExtAndOuterOneNotificationHandler> logger)
+        public ByeExtAndOuterOneNotificationHandler(ICallRepository callRepository, ICallDetailRepository callDetailRepository,IUserCacheManager userCacheManager, IRealtimeService realtimeService)
         {
             _callRepository = callRepository;
             _callDetailRepository = callDetailRepository;
             _userCacheManager = userCacheManager;
             _realtimeService = realtimeService;
-            _logger = logger;
         }
 
 
@@ -55,7 +51,6 @@ namespace CallCenter.Application.Handlers
                 var workModel = _userCacheManager.GetWorkByTel(notification.TelNo);
                 if (workModel != null)
                 {
-                    _logger.LogInformation("UserId:" + workModel.UserId + ",Id:" + model.Id);
                     await _realtimeService.ByeAsync(workModel.UserId, new ByeDto() { Id = model.Id }, cancellationToken);
                 }