Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ConfigurationProvider.Current shouldn't depend on IConfigurationSectionHandler from System.Configuration.ConfigurationManager #120

Open
bahusoid opened this issue Apr 11, 2023 · 0 comments · May be fixed by #121

Comments

@bahusoid
Copy link
Member

bahusoid commented Apr 11, 2023

public static ConfigurationProviderBase<TConfig, TConfigHandler> Current
{
get => _current ?? (_current = new StaticConfigurationManagerProvider());
set => _current = value ?? new NullConfigurationProvider();
}

It's quite strange that user custom implementation not using xml still needs dependency on this xml related class from nuget package:

public class CoreDistributedCacheCustomConfigProvider : ConfigurationProviderBase<CacheConfig,CoreDistributedCacheSectionHandler>
@bahusoid bahusoid changed the title 'ConfigurationProvider.Current' shouldn't depend on IConfigurationSectionHandler from System.Configuration.ConfigurationManager ConfigurationProvider.Current shouldn't depend on IConfigurationSectionHandler from System.Configuration.ConfigurationManager Apr 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant