合并代码

master
CaesarBao 4 months ago
parent 3730109cf6
commit 9b1e7f447e

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

Loading…
Cancel
Save