|
@@ -1,4 +1,5 @@
|
|
|
using CallCenter.Caches;
|
|
|
+using CallCenter.Calls;
|
|
|
using CallCenter.Realtimes;
|
|
|
using CallCenter.Users;
|
|
|
using Microsoft.AspNetCore.SignalR;
|
|
@@ -74,7 +75,7 @@ namespace CallCenter.Api.Realtimes
|
|
|
/// <param name="count"></param>
|
|
|
/// <param name="cancellationToken"></param>
|
|
|
/// <returns></returns>
|
|
|
- public async Task CallQueueAsync(int count,CancellationToken cancellationToken)
|
|
|
+ public async Task CallQueueAsync(List<Call> list,CancellationToken cancellationToken)
|
|
|
{
|
|
|
var works = _userCacheManager.GetWorks();
|
|
|
if (works!=null)
|
|
@@ -82,7 +83,7 @@ namespace CallCenter.Api.Realtimes
|
|
|
var sendlist = works.Where(x => x.SignalRId != null && x.SignalRId != "").Select(x => x.SignalRId).ToList();
|
|
|
foreach (var item in sendlist)
|
|
|
{
|
|
|
- await _hubContext.Clients.Client(item).SendAsync(RealtimeMethods.CallQueue, new { count = count }, cancellationToken);
|
|
|
+ await _hubContext.Clients.Client(item).SendAsync(RealtimeMethods.CallQueue, new { list }, cancellationToken);
|
|
|
}
|
|
|
}
|
|
|
}
|