public EventBusHandler(ILogger <EventBusHandler> logger, IServiceScopeFactory scopeFactor , IOptions <AppSettings> options, IStorage storage, FlowRuleProcessor flowRuleProcessor, IEasyCachingProviderFactory factory ) { _appSettings = options.Value; _logger = logger; _scopeFactor = scopeFactor; _storage = storage; _flowRuleProcessor = flowRuleProcessor; _caching = factory.GetCachingProvider("iotsharp"); }
public MQTTServerHandler(ILogger <MQTTServerHandler> logger, IServiceScopeFactory scopeFactor, MqttServer serverEx , IOptions <AppSettings> options, ICapPublisher queue, IEasyCachingProviderFactory factory, FlowRuleProcessor flowRuleProcessor ) { _mcsetting = options.Value.MqttClient; _settings = options.Value; _logger = logger; _scopeFactor = scopeFactor; _factory = factory; _serverEx = serverEx; _queue = queue; _flowRuleProcessor = flowRuleProcessor; _caching = factory.GetCachingProvider("iotsharp"); }