HuBingJie
9 天以前 21078521d79f0eb5535cc34be7917a3fd1123b8f
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", "停止设备状态监控");
            }
        }
    }
}