Example #1
0
 public JT1078UdpServerHandler(
     ILoggerFactory loggerFactory,
     JT1078AtomicCounterServiceFactory atomicCounterServiceFactory,
     IJT1078UdpMessageHandlers handlers,
     JT1078UdpSessionManager sessionManager)
 {
     this.AtomicCounterService = atomicCounterServiceFactory.Create(JT1078TransportProtocolType.udp);
     this.SessionManager       = sessionManager;
     logger        = loggerFactory.CreateLogger <JT1078UdpServerHandler>();
     this.handlers = handlers;
 }
 public JT1078TcpServerHandler(
     IJT1078SourcePackageDispatcher sourcePackageDispatcher,
     IJT1078TcpMessageHandlers handlers,
     ILoggerFactory loggerFactory,
     JT1078AtomicCounterServiceFactory atomicCounterServiceFactory,
     JT1078TcpSessionManager sessionManager)
 {
     this.sourcePackageDispatcher = sourcePackageDispatcher;
     this.handlers             = handlers;
     this.SessionManager       = sessionManager;
     this.AtomicCounterService = atomicCounterServiceFactory.Create(JT1078TransportProtocolType.tcp);
     logger = loggerFactory.CreateLogger <JT1078TcpServerHandler>();
 }