public TcpClientHandler(ILogger <TcpClientHandler> logger, ITcpClientManager tcpClientManager, IServerSessionManager serverSessionManager, IOptions <GatewayConfiguration> options) { this.logger = logger; this.tcpClientManager = tcpClientManager; this.serverSessionManager = serverSessionManager; configuration = options.Value; }
public SendJt808MessageController(ITcpClientFactory tcpClientFactory, ITcpClientManager tcpClientManager, ITerminalService terminalService, ILogger <SendJt808MessageController> logger) { this.tcpClientFactory = tcpClientFactory; this.tcpClientManager = tcpClientManager; this.terminalService = terminalService; this.logger = logger; }
public BranchTcpServerHandler(ILogger <BranchTcpServerHandler> logger, IServerSessionManager serverSessionManager, ITcpClientFactory tcpClientFactory, ITcpClientManager tcpClientManager, IOptions <GatewayConfiguration> options) { this.logger = logger; this.tcpClientManager = tcpClientManager; this.serverSessionManager = serverSessionManager; configuration = options.Value; Parallel.ForEach(configuration.BrabchServer, x => tcpClientFactory.CreateTcpClient(x.MatchId)); }
public SessionController(ITcpClientManager tcpClientManager, ITerminalService terminalService) { this.tcpClientManager = tcpClientManager; this.terminalService = terminalService; }
public Client(ITcpClientManager tcpClientManager) { this.tcpClientManager = tcpClientManager; }
public TcpClientFactory(IServiceProvider serviceProvider, ITcpClientManager tcpClientManager) { this.serviceProvider = serviceProvider; this.tcpClientManager = tcpClientManager; }