恒石成品库WCS
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.

28 lines
638 B

using Microsoft.AspNetCore.SignalR;
using System.Threading.Tasks;
namespace WcfControlMonitorWebLib.Hubs
{
public sealed class MonitorHub : Hub
{
private readonly IHubContext<MonitorHub> _hub; // 集线器
/// <summary>
/// 依赖注入
/// </summary>
public MonitorHub(
IHubContext<MonitorHub> hub)
{
_hub = hub;
}
///// <summary>
///// 广播设备状态
///// </summary>
//public Task Broadcast(object data)
//{
// return _hub.Clients.All.SendAsync("broadcast", data);
//}
}
}