| 对比新文件 |
| | |
| | | 锘縰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; |
| | | } |
| | | } |
| | | } |