예제 #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;
 }
 public JT809SubordinateClientHandler(
     ILoggerFactory loggerFactory,
     IJT809Config jT809Config,
     JT809SuperiorMsgIdReceiveHandlerBase handler,
     JT809AtomicCounterServiceFactory jT809AtomicCounterServiceFactorty
     )
 {
     this.handler    = handler;
     JT809Serializer = jT809Config.GetSerializer();
     this.jT809AtomicCounterService = jT809AtomicCounterServiceFactorty.Create(JT809AtomicCounterType.ClientSubordinate.ToString());
     logger = loggerFactory.CreateLogger <JT809SubordinateServerHandler>();
 }
예제 #4
0
        public JT809MainServerHandler(
            ILoggerFactory loggerFactory,
            JT809SuperiorMsgIdReceiveHandlerBase handler,
            JT809SuperiorMainSessionManager superiorMainSessionManager,
            JT809AtomicCounterServiceFactory jT809AtomicCounterServiceFactorty

            )
        {
            this.handler = handler;
            this.jT809AtomicCounterService  = jT809AtomicCounterServiceFactorty.Create(JT809AtomicCounterType.ServerMain.ToString());;
            this.SuperiorMainSessionManager = superiorMainSessionManager;
            logger = loggerFactory.CreateLogger <JT809MainServerHandler>();
        }