Skip to content
This repository has been archived by the owner on Dec 9, 2020. It is now read-only.

Add attribute for registering configuration classes. #2

Open
adusak opened this issue Oct 16, 2017 · 0 comments
Open

Add attribute for registering configuration classes. #2

adusak opened this issue Oct 16, 2017 · 0 comments

Comments

@adusak
Copy link
Contributor

adusak commented Oct 16, 2017

So instead of registering the classes like this:

services.Configure<MyServiceOptions>(Configuration.GetSection(nameof(MyServiceOptions)));
services.Configure<MyOtherServiceOptions>(Configuration.GetSection(nameof(MyOtherServiceOptions)));

There would be an attribute [RegisterConfiguration].

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

No branches or pull requests

1 participant