Beispiel #1
0
 public JT809SubordinateServerHandler(
     ILoggerFactory loggerFactory,
     JT809InferiorMsgIdReceiveHandlerBase handler,
     JT809AtomicCounterServiceFactory jT809AtomicCounterServiceFactorty
     )
 {
     this.handler = handler;
     this.jT809AtomicCounterService = jT809AtomicCounterServiceFactorty.Create(JT809AtomicCounterType.ServerSubordinate.ToString());
     logger = loggerFactory.CreateLogger <JT809SubordinateServerHandler>();
 }
 public JT809MainClientHandler(
     ILoggerFactory loggerFactory,
     JT809InferiorMsgIdReceiveHandlerBase handler,
     JT809AtomicCounterServiceFactory jT809AtomicCounterServiceFactorty,
     JT809Serializer serializer)
 {
     this.handler = handler;
     this.jT809AtomicCounterService = jT809AtomicCounterServiceFactorty.Create(JT809AtomicCounterType.ClientMain.ToString());
     logger          = loggerFactory.CreateLogger <JT809MainServerHandler>();
     this.serializer = serializer;
 }