public AbstractChannelService(IMessagePushService messagePushService, IMqttBrokerEntryManger mqttBrokerEntryManger, IMqttRemoteInvokeService mqttRemoteInvokeService, IServiceIdGenerator serviceIdGenerator ) { _messagePushService = messagePushService; _mqttBrokerEntryManger = mqttBrokerEntryManger; _mqttRemoteInvokeService = mqttRemoteInvokeService; _publishServiceId = serviceIdGenerator.GenerateServiceId(typeof(IMqttRomtePublishService).GetMethod("Publish")); }
public MqttChannelService(IMessagePushService messagePushService, IClientSessionService clientSessionService, ILogger <MqttChannelService> logger, IWillService willService, IMqttBrokerEntryManger mqttBrokerEntryManger, IMqttRemoteInvokeService mqttRemoteInvokeService, IServiceIdGenerator serviceIdGenerator) : base(messagePushService, mqttBrokerEntryManger, mqttRemoteInvokeService, serviceIdGenerator) { _messagePushService = messagePushService; _clientSessionService = clientSessionService; _logger = logger; _willService = willService; }