コード例 #1
0
 public AbstractChannelService(IMessagePushService messagePushService,
                               IMqttBrokerEntryManger mqttBrokerEntryManger,
                               IMqttRemoteInvokeService mqttRemoteInvokeService,
                               IServiceIdGenerator serviceIdGenerator
                               )
 {
     _messagePushService      = messagePushService;
     _mqttBrokerEntryManger   = mqttBrokerEntryManger;
     _mqttRemoteInvokeService = mqttRemoteInvokeService;
     _publishServiceId        = serviceIdGenerator.GenerateServiceId(typeof(IMqttRomtePublishService).GetMethod("Publish"));
 }
コード例 #2
0
 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;
 }