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

Ability to replace ConfigurationManager with a custom config provider #2116

Merged
merged 13 commits into from
Oct 16, 2019

Conversation

bahusoid
Copy link
Member

@bahusoid bahusoid commented Apr 10, 2019

Fixes #2105

Introduced abstract class ConfigurationProvider exposed as ConfigurationProvider.Current.

To skip all configuration calls (fix for Xamarin) just set it to null:

ConfigurationProvider.Current = null;

Also implemented custom provider for tests under .NET Core (see here)

@hazzik hazzik changed the title Ability to replace ConfigurationManager with custom config provider Ability to replace ConfigurationManager with a custom config provider Apr 11, 2019
@hazzik
Copy link
Member

hazzik commented Oct 1, 2019

not sure what you meant exactly there [#1402] - but it's either already supported by using SystemConfigurationManager or can be easily implemented by end user

There we need a way to implement a configuration from IConfiguration interface introduced in .NET Core 2.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Xamarin .NET Standard 2.0.3 ConfigurationManager throws PlatformNotSupported exception in NHibernateLogger
2 participants