Beispiel #1
0
 public BaseStationListModule(IServiceProvider serviceProvider, ISocketSendServer socketSendServer,
                              ILogger <BaseStationListModule> logger)
 {
     _serviceProvider  = serviceProvider;
     _socketSendServer = socketSendServer;
     _logger           = logger;
 }
Beispiel #2
0
 public SocketHostedService(ISocketServer socketTcpServer,
                            ISocketClientDictionary <string, UserToken> socketClientDictionary,
                            IProtocolFactory protocolFactory,
                            ISocketSendServer socketSendServer,
                            IOptionsMonitor <CollectionSetting> kj1012CollectionSetting,
                            ILogger <SocketHostedService> logger)
 {
     _socketTcpServer                  = socketTcpServer;
     _socketClientDictionary           = socketClientDictionary;
     _protocolFactory                  = protocolFactory;
     _socketSendServer                 = socketSendServer;
     _kj1012CollectionSetting          = kj1012CollectionSetting.CurrentValue;
     _socketTcpServer.Listening       += SocketTcpServer_Listening;
     _socketTcpServer.ClientConnected += SocketTcpServer_ClientConnected;
     _socketTcpServer.ReceiveData     += SocketTcpServer_ReceiveData;
     _socketTcpServer.ClientClose     += SocketTcpServer_ClientClose;
     _socketTcpServer.Error           += SocketTcpServer_Error;
     _socketTcpServer.SetKeepAlive(true, 1000, 500);
     _logger = logger;
 }
Beispiel #3
0
 public TimeCheckModule(ILogger <TimeCheckModule> logger, ISocketSendServer socketSendServer)
 {
     _logger           = logger;
     _socketSendServer = socketSendServer;
 }
Beispiel #4
0
 public UpCallSendProtocol(ISocketSendServer socketSendServer,
                           IOptionsMonitor <CollectionSetting> kj1012CollectionSetting)
 {
     _socketSendServer        = socketSendServer;
     _kj1012CollectionSetting = kj1012CollectionSetting;
 }
Beispiel #5
0
 public DeviceSendProtocol(ISocketSendServer socketSendServer)
 {
     _socketSendServer = socketSendServer;
 }