Last active
July 27, 2018 05:48
-
-
Save wellingtonjhn/fbfb83845b738cea6a1767b4a6d7bc29 to your computer and use it in GitHub Desktop.
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
| public class Startup | |
| { | |
| public IConfiguration Configuration { get; } | |
| // ... código omitido | |
| public void ConfigureServices(IServiceCollection services) | |
| { | |
| services.AddSingleton(Configuration); | |
| services.Configure<MySettings>(Configuration.GetSection("MySettings")); | |
| } | |
| public void Configure(IApplicationBuilder app, IHostingEnvironment env) | |
| { | |
| // ... código omitido | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment