huanghongfeng
7 天以前 8c8a68df710d568f5f2b358c1e8c4b4799547d0b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
using Microsoft.AspNetCore.SignalR;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
 
namespace WIDESEAWCS_TaskInfoService
{
    public class DeviceStatusHub : Hub
    {
        public async Task StartDeviceStatusUpdates(int offo)
        {
            if (offo == 1)
            {
                await Clients.Caller.SendAsync("ReceiveDeviceStatusUpdate", "开始设备状态监控");
            }
            else
            {
                await Clients.Caller.SendAsync("ReceiveDeviceStatusUpdate", "停止设备状态监控");
            }
        }
    }
}