Use shared provider instance
Last updated
Was this helpful?
Last updated
Was this helpful?
Requires: main module.
Configuration provider class has a property named Default
that serves as a global static source of IConfigurationProvider
instance.
It's intended use case is self-sufficient configuration in libraries: library authors may not want to force their users to provide an IConfigurationProvider
instance each time they're using library classes. Instead, these classes could just obtain a log from the shared property:
By default this property returns a singleton provider with default settings. It can be configured explicitly in the application: