public async Task RefreshAsync() { if (_provider == null) { throw new InvalidOperationException("ConfigurationBuilder.Build() must be called before this operation can be performed."); } await _provider.RefreshAsync().ConfigureAwait(false); }
public async Task RefreshAsync() { ThrowIfNullProvider(); await _provider.RefreshAsync().ConfigureAwait(false); }
public async Task RefreshAsync(CancellationToken cancellationToken) { ThrowIfNullProvider(nameof(RefreshAsync)); await _provider.RefreshAsync(cancellationToken).ConfigureAwait(false); }