public ContextMiddleware(IOptions <BotOptions> config, BotRoutingDataManager routingDataManager, ILogger <ContextMiddleware> logger) { _config = config.Value; _routingDataManager = routingDataManager; _logger = logger; }
public CommandMiddleware(IOptions <BotOptions> config, BotRoutingDataManager routingDataManager, IMassTransitServiceBus serviceBus, IDeviceRestService deviceRestService, ChatReportDataManager reportDataManager, ILogger <CommandMiddleware> logger) : base(logger) { _config = config.Value; _serviceBus = serviceBus; _deviceRestService = deviceRestService; _routingDataManager = routingDataManager; _reportDataManager = reportDataManager; _logger = logger; }