public TcpClientHandler(ILogger <TcpClientHandler> logger, ITcpClientManager tcpClientManager, IServerSessionManager serverSessionManager, IOptions <GatewayConfiguration> options)
 {
     this.logger               = logger;
     this.tcpClientManager     = tcpClientManager;
     this.serverSessionManager = serverSessionManager;
     configuration             = options.Value;
 }
Example #2
0
 public SendJt808MessageController(ITcpClientFactory tcpClientFactory, ITcpClientManager tcpClientManager, ITerminalService terminalService, ILogger <SendJt808MessageController> logger)
 {
     this.tcpClientFactory = tcpClientFactory;
     this.tcpClientManager = tcpClientManager;
     this.terminalService  = terminalService;
     this.logger           = logger;
 }
Example #3
0
 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;
 }
Example #5
0
 public Client(ITcpClientManager tcpClientManager)
 {
     this.tcpClientManager = tcpClientManager;
 }
Example #6
0
 public TcpClientFactory(IServiceProvider serviceProvider, ITcpClientManager tcpClientManager)
 {
     this.serviceProvider  = serviceProvider;
     this.tcpClientManager = tcpClientManager;
 }