public JT808GatewayService( IJT808UnificationSendService jT808UnificationSendService, IJT808SessionService jT808SessionService, JT808AtomicCounterServiceFactory jT808AtomicCounterServiceFactory ) { this.jT808UnificationSendService = jT808UnificationSendService; this.jT808SessionService = jT808SessionService; this.jT808TcpAtomicCounterService = jT808AtomicCounterServiceFactory.Create(JT808TransportProtocolType.tcp); this.jT808UdpAtomicCounterService = jT808AtomicCounterServiceFactory.Create(JT808TransportProtocolType.udp); }
public JT808GatewayService( IOptionsMonitor <JT808Configuration> configurationOptionsMonitor, JT808SessionManager jT808SessionManager, JT808AtomicCounterServiceFactory jT808AtomicCounterServiceFactory ) { this.jT808SessionManager = jT808SessionManager; this.ConfigurationOptionsMonitor = configurationOptionsMonitor; this.jT808TcpAtomicCounterService = jT808AtomicCounterServiceFactory.Create(JT808TransportProtocolType.tcp); this.jT808UdpAtomicCounterService = jT808AtomicCounterServiceFactory.Create(JT808TransportProtocolType.udp); }