Last active
December 23, 2020 11:21
-
-
Save AvgustPol/c111e731d1ab37cef7f99a8bba8d5af6 to your computer and use it in GitHub Desktop.
Options
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Microsoft.Extensions.Configuration; | |
using Microsoft.Extensions.DependencyInjection; | |
private void InitFoo(IConfiguration configuration) | |
{ | |
var config = configuration.GetSection(FooOptions.Position) | |
.Get<FooOptions>(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
NuGets:
Microsoft.Extensions.Configuration
Microsoft.Extensions.Configuration.Binder