-
Notifications
You must be signed in to change notification settings - Fork 40
Add mechanisms for loading "default HOCON" in both .NET Framework and .NET Core #151
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
Comments
Already have this method: HOCON/src/Hocon.Configuration/ConfigurationFactory.cs Lines 60 to 63 in 526e6de
I'll use that instead. |
And look at this, we have this one too: HOCON/src/Hocon.Configuration/ConfigurationFactory.cs Lines 86 to 89 in 526e6de
|
Alrighty... That's what I'll target. |
Aaronontheweb
added a commit
to Aaronontheweb/HOCON
that referenced
this issue
Dec 20, 2019
Added ConfigurationFactory.FromFile method Added new HOCON loading order per 151 Made ConfigurationFactory.Load Obsolete
Aaronontheweb
added a commit
that referenced
this issue
Dec 27, 2019
* working on adding default HOCON loading methods (#151) Added ConfigurationFactory.FromFile method Added new HOCON loading order per 151 Made ConfigurationFactory.Load Obsolete * added specs * cleaned up Default() method * added default HOCON reading instructions to README
Aaronontheweb
added a commit
that referenced
this issue
Dec 27, 2019
* working on adding default HOCON loading methods (#151) Added ConfigurationFactory.FromFile method Added new HOCON loading order per 151 Made ConfigurationFactory.Load Obsolete * added specs * cleaned up Default() method * added default HOCON reading instructions to README
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In part to help cleanly decouple HOCON from Akka.NET, one major sticky wicket that needs to be addressed is Akka.NET's usage of the legacy
System.ConfigurationManager
APIs that are depended on by nearly all of our .NET Framework users (see akkadotnet/akka.net#3944 (comment))What I would like to implement is a static helper method for loading the "default" HOCON file, if there is one to be found.
The options for the "default" files are, in the following loading order:
<hocon>
ConfigurationSection
insideApp.config
orWeb.config
, which should also resolve rename AkkaConfigurationSection to HoconConfigurationSection? #8 and Remove top level <akka> element #9<akka>
HOCON section for backwards compatibility purposes with all users who are running a version of Akka.NET older than 1.4.0.The default HOCON will be loaded by an
ActorSystem
automatically in Akka.NET, if no other HOCON value is supplied during theActorSystem.Create
method, via the following call which will be implemented in the HOCON.Configuration library:Most of the hard work for this has already been done by @Arkatufus - I'm going to work on implementing a few helper methods and some backwards compatibility shims for making this fully supported inside Akka.NET.
The text was updated successfully, but these errors were encountered: