public async Task <IComponentConfiguration> GetConfigurationAsync(Type componentType, string name) { Type configurationType = _componentConfigurationMap.GetConfigurationTypeFor(componentType); return((IComponentConfiguration)await _configurationProvider.GetConfigurationAsync(configurationType, name)); }
public RulesetScheduleProvider(IConfigurationProvider configurationProvider, IRepository <VersionSchedule> scheduleRepository) : this(configurationProvider.GetConfigurationAsync <BranchConfiguration>().GetAwaiter().GetResult().ActiveBranchId, scheduleRepository) { }