public GenerateController(IPipelineManager pipelineManager, IConfiguration config, IOptions <AzureConfig> azcfg, IOptions <StreamConfig> stCfg, IOptions <FilesystemConfig> fsCfg, IOptions <LimitsConfig> limits) { _pipelineManager = pipelineManager; azcfg.Value.Storage.BindConfiguration(config); stCfg.Value.BindConfiguration(config); _pCfgs[typeof(AzureConfig)] = azcfg.Value; _pCfgs[typeof(StreamConfig)] = stCfg.Value; _pCfgs[typeof(FilesystemConfig)] = fsCfg.Value; _limits = limits.Value; }
public PipelineManager(IConfiguration config, IOptions <StreamConfig> streamCfg, IOptions <LimitsConfig> limits) { streamCfg.Value.BindConfiguration(config); if (!string.IsNullOrEmpty(streamCfg.Value.ConnectionString)) { try { _streamConn = ConnectionMultiplexer.Connect(streamCfg.Value.ConnectionString); _idResolverCache = new Dictionary <Guid, Guid>(); } catch (RedisConnectionException rde) { Console.WriteLine($"Unable to connect to stream service, no ID resolver availble. Msg: {rde.Message}"); } } _limits = limits.Value; }
public InfoController(IPipelineManager pm, IOptions <LimitsConfig> limits) { _pipelineManager = pm; _limits = limits.Value; }
public PipelineManagerService(IPipelineManager pipelineManager, IOptions <LimitsConfig> limits) { _pm = pipelineManager; _limits = limits.Value; }