合并代码

master
CaesarBao 4 months ago
parent 3730109cf6
commit 9b1e7f447e

@ -34,7 +34,7 @@ using TouchSocket.Sockets;
#endregion << 版 本 注 释 >> #endregion << 版 本 注 释 >>
namespace SlnMesnac.TouchSocket namespace SlnMesnac.TouchSocket
{ {
public class TcpServer : BackgroundService public class TcpServer
{ {
private ILogger<TcpServer> _logger; private ILogger<TcpServer> _logger;
@ -88,13 +88,7 @@ namespace SlnMesnac.TouchSocket
_appConfig = appConfig; _appConfig = appConfig;
} }
protected override Task ExecuteAsync(CancellationToken stoppingToken) public void Init(int serverPort)
{
Init(_appConfig.TCPVisionConfig);
return Task.CompletedTask;
}
public void Init(string serverPort)
{ {
try try
{ {

Loading…
Cancel
Save