|
|
@ -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
|
|
|
|
{
|
|
|
|
{
|
|
|
|