public async Task <IComponentConfiguration> GetConfigurationAsync(Type componentType, string name)
        {
            Type configurationType = _componentConfigurationMap.GetConfigurationTypeFor(componentType);

            return((IComponentConfiguration)await _configurationProvider.GetConfigurationAsync(configurationType, name));
        }
Exemplo n.º 2
0
 public RulesetScheduleProvider(IConfigurationProvider configurationProvider, IRepository <VersionSchedule> scheduleRepository)
     : this(configurationProvider.GetConfigurationAsync <BranchConfiguration>().GetAwaiter().GetResult().ActiveBranchId, scheduleRepository)
 {
 }