dengjunjie
10 天以前 20cb77bc4de8ae42c6f42cd617385009eaf1f12b
添加WebSocketServer服务
已添加1个文件
35 ■■■■■ 文件已修改
新建文件夹/WIDESEA_WMSServer/WIDESEA_Core/Extensions/WebSocketHostedService.cs 35 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
新建文件夹/WIDESEA_WMSServer/WIDESEA_Core/Extensions/WebSocketHostedService.cs
对比新文件
@@ -0,0 +1,35 @@
锘縰sing 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;
        }
    }
}