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"); }
public JT808TcpServerHandler( JT808TrafficServiceFactory jT808TrafficServiceFactory, ILoggerFactory loggerFactory, JT808TransmitAddressFilterService jT808TransmitAddressFilterService, IJT808SourcePackageDispatcher jT808SourcePackageDispatcher, IJT808UplinkPacket jT808UplinkPacket, JT808MsgIdTcpHandlerBase handler, JT808AtomicCounterServiceFactory jT808AtomicCounterServiceFactory, JT808TcpSessionManager jT808SessionManager) { this.jT808TrafficService = jT808TrafficServiceFactory.Create(JT808TransportProtocolType.tcp); this.jT808TransmitAddressFilterService = jT808TransmitAddressFilterService; this.handler = handler; this.jT808SessionManager = jT808SessionManager; this.jT808SourcePackageDispatcher = jT808SourcePackageDispatcher; this.jT808UplinkPacket = jT808UplinkPacket; this.jT808AtomicCounterService = jT808AtomicCounterServiceFactory.Create(JT808TransportProtocolType.tcp); logger = loggerFactory.CreateLogger <JT808TcpServerHandler>(); unknownLogger = loggerFactory.CreateLogger("tcp_unknown_msgid"); }