public JT808UnificationUdpSendService(
     IJT808DatagramPacket jT808DatagramPacket,
     JT808UdpSessionManager jT808SessionManager)
 {
     this.jT808DatagramPacket = jT808DatagramPacket;
     this.jT808SessionManager = jT808SessionManager;
 }
Example #2
0
 public JT808SessionManager(
     IJT808SessionProducer jT808SessionProducer,
     ILoggerFactory loggerFactory,
     IJT808DatagramPacket jT808DatagramPacket)
 {
     Sessions             = new ConcurrentDictionary <string, IJT808Session>(StringComparer.OrdinalIgnoreCase);
     JT808SessionProducer = jT808SessionProducer;
     logger = loggerFactory.CreateLogger <JT808SessionManager>();
     this.jT808DatagramPacket = jT808DatagramPacket;
 }
Example #3
0
 public JT808UdpServerHandler(
     IJT808DatagramPacket jT808DatagramPacket,
     JT808TrafficServiceFactory jT808TrafficServiceFactory,
     ILoggerFactory loggerFactory,
     IJT808SourcePackageDispatcher jT808SourcePackageDispatcher,
     IJT808UplinkPacket jT808UplinkPacket,
     JT808MsgIdUdpHandlerBase handler,
     JT808AtomicCounterServiceFactory jT808AtomicCounterServiceFactory,
     JT808UdpSessionManager jT808UdpSessionManager)
 {
     this.jT808DatagramPacket          = jT808DatagramPacket;
     this.jT808TrafficService          = jT808TrafficServiceFactory.Create(JT808TransportProtocolType.udp);
     this.handler                      = handler;
     this.jT808SourcePackageDispatcher = jT808SourcePackageDispatcher;
     this.jT808AtomicCounterService    = jT808AtomicCounterServiceFactory.Create(JT808TransportProtocolType.udp);
     this.jT808UplinkPacket            = jT808UplinkPacket;
     this.jT808UdpSessionManager       = jT808UdpSessionManager;
     logger        = loggerFactory.CreateLogger <JT808UdpServerHandler>();
     unknownLogger = loggerFactory.CreateLogger("udp_unknown_msgid");
 }