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