add some new features in data service ...

This commit is contained in:
2026-05-15 19:41:43 +03:30
parent 35e1e08d50
commit f929414b9f
15 changed files with 1826 additions and 34 deletions
+12 -2
View File
@@ -1,4 +1,5 @@
using System;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.AspNetCore.SignalR;
using Microsoft.Extensions.Logging;
@@ -58,11 +59,20 @@ namespace xPushService.Base
//
#region Actions ...
public async Task SendCustomAction(string actionName, string payLoad)
public async Task SendCustomAction(
string actionName,
string payLoad,
CancellationToken cancellationToken = default
)
{
//
var connectionId = Context.ConnectionId;
await Clients.AllExcept(connectionId).SendAsync(actionName, payLoad, connectionId);
await Clients.AllExcept(connectionId).SendAsync(
actionName,
payLoad,
connectionId,
cancellationToken
);
}
#endregion
}