public GitConfigurationProvider(IVersionedConfigProvider provider) { _provider = provider ?? throw new ArgumentNullException(nameof(provider)); _ = new System.Threading.Timer(_ => Load(), null, provider.ReloadInterval, provider.ReloadInterval); }
/// <summary> /// Add GitConfigurationSource based on provider /// </summary> public static IConfigurationBuilder AddGitProvider(this IConfigurationBuilder configuration, IVersionedConfigProvider provider) { configuration.Add(new GitConfigurationSource(provider)); return(configuration); }
public GitConfigurationSource(IVersionedConfigProvider provider) { _provider = provider ?? throw new ArgumentNullException(nameof(provider)); }