You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 18, 2018. It is now read-only.
Currently if you want to bind configuration to any sort of user-defined model, you have to create the model and then bind:
varmodel=newMyModel();configuration.Bind(model);
You have to do that because GetValue<T> only uses type conversion to convert the value in a specific key into a destination type. So something like this works...
Other similar scenarios become multi-step pain, too. Instead of only using type conversion in the GetValue<T> mechanism, it would be nice if that process would also make use of the (private) CreateInstance method in the binder already and create a new version of the model/bind that new version if possible.