This repository has been archived by the owner on May 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 54
Equivalent to fubu's Setting model #9
Labels
Comments
To add a little more context to this one, here are the potential use cases inside the
At bootstrapping time, the first step is to create your |
This was referenced Mar 10, 2017
@mwuthrich A few comments I jotted down yesterday:
|
@mwuthrich I want to call this one closed if that's alright with you. I'd rather just open smaller, focused issues on whatever else we come up with against this. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I think this is going to be much simpler in Core's much better configuration model, but still.
Personally, I think that the way ASP.Net Core uses its
IOptions
mechanism is bonkers and unnecessarily clumsy. Admittedly, their configuration design is based on the idea that configuration is variable during the lifetime of the application. If we forgo that capability, I think our usage could be much simpler.The goal of this story is to provide strong typed configuration much the same way we did in FubuMVC. We'd surely want to also support the
IOptions<T>
pattern that ASP.Net Core supports. The basic idea is that at application bootstrapping time you hydrate all the Settings Type's known upfront and each is registered in the StructureMap container as a singleton. In addition, if a previously unknown Settings type is requested at runtime, we should have a StructureMap policy (like this one from FubuMVC)Using fubu as a guide, we should support a combination of loading configuration objects from:
pairs like we did in FubuMVC. For the sake of environment variables, I'd guess the answer is "both".
Settings
JasperRegistry
The text was updated successfully, but these errors were encountered: