dengjunjie
10 天以前 20cb77bc4de8ae42c6f42cd617385009eaf1f12b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
using HslCommunication.Core.IMessage;
using HslCommunication.WebSocket;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;
using Org.BouncyCastle.Asn1.Ocsp;
using SqlSugar.Extensions;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.Json;
using System.Threading.Tasks;
 
namespace WIDESEA_Core
{
    public class WebSocketHostedService : IHostedService
    {
        private readonly WebSocketServer _webSocketServer;
 
        public WebSocketHostedService(WebSocketServer webSocketServer)
        {
            _webSocketServer = webSocketServer;
        }
 
        public async Task StartAsync(CancellationToken cancellationToken)
        {
            await Task.CompletedTask;
        }
 
        public async Task StopAsync(CancellationToken cancellationToken)
        {
            await Task.CompletedTask;
        }
    }
}