Exemplo n.º 1
0
 public JT808ServiceHandler(
     JT808MsgIdHandler jT808MsgIdHandler,
     ISourcePackageDispatcher SourcePackageDispatcher,
     ILoggerFactory loggerFactory)
 {
     this.jT808MsgIdHandler       = jT808MsgIdHandler;
     this.SourcePackageDispatcher = SourcePackageDispatcher;
     logger = loggerFactory.CreateLogger <JT808ServiceHandler>();
 }
Exemplo n.º 2
0
 public JT808Server(
     JT808MsgIdHandler jT808MsgIdHandler,
     IConsumerFactory consumerFactory,
     IProducerFactory producerFactory,
     ISourcePackageDispatcher sourcePackageDispatcher,
     IDeviceMonitoringDispatcher deviceMonitoringDispatcher,
     ILoggerFactory loggerFactory)
     : base(new DefaultReceiveFilterFactory <JT808ReceiveFilter, JT808RequestInfo>())
 {
     JT808MsgIdHandler          = jT808MsgIdHandler;
     ConsumerFactory            = consumerFactory;
     ProducerFactory            = producerFactory;
     SourcePackageDispatcher    = sourcePackageDispatcher;
     DeviceMonitoringDispatcher = deviceMonitoringDispatcher;
     log = loggerFactory.CreateLogger <JT808Server>();
     log.LogDebug("Init JT808Server");
 }