You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
iot/projects/IoTCenter/Services/IoTCenterHubExtensions.cs

14 lines
474 B

using Application.Models;
using Infrastructure.Extensions;
using Microsoft.AspNetCore.SignalR;
namespace IoTCenter.Services
{
public static class IoTCenterHubExtensions
{
public static void ServerToClient(this IHubContext<IoTCenterHub> hub, string group, string method, object arg, string fromConnectionId = null)
{
hub?.Clients.Group(group).SendAsync(Methods.ServerToClient, method, arg.ToJson(), fromConnectionId);
}
}
}