예제 #1
0
파일: Generate.cs 프로젝트: rpj/rg
        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;
        }
예제 #2
0
파일: PipelineManager.cs 프로젝트: rpj/rg
        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;
        }
예제 #3
0
파일: Info.cs 프로젝트: rpj/rg
 public InfoController(IPipelineManager pm,
                       IOptions <LimitsConfig> limits)
 {
     _pipelineManager = pm;
     _limits          = limits.Value;
 }
예제 #4
0
파일: ManagerService.cs 프로젝트: rpj/rg
 public PipelineManagerService(IPipelineManager pipelineManager, IOptions <LimitsConfig> limits)
 {
     _pm     = pipelineManager;
     _limits = limits.Value;
 }