public JT809SubordinateClientHandler(
     ILoggerFactory loggerFactory,
     JT809SuperiorMsgIdReceiveHandlerBase handler,
     JT809AtomicCounterServiceFactory jT809AtomicCounterServiceFactorty
     )
 {
     this.handler = handler;
     this.jT809AtomicCounterService = jT809AtomicCounterServiceFactorty.Create(JT809AtomicCounterType.ClientSubordinate.ToString());
     logger = loggerFactory.CreateLogger <JT809SubordinateServerHandler>();
 }
Пример #2
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>();
        }