Created
September 8, 2018 06:04
-
-
Save wellingtonjhn/cd475a9c36d09fd7d95385f26a79bd23 to your computer and use it in GitHub Desktop.
Startup ConfigurationSettingsValidationStartupFilter
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; } | |
| public void ConfigureServices(IServiceCollection services) | |
| { | |
| services.AddLogging(); | |
| services.AddSingleton(Configuration); | |
| services.AddTransient<IStartupFilter, ConfigurationSettingValidationStartupFilter>(); | |
| services.RegisterSettings<MySettings>(Configuration); | |
| // ... | |
| } | |
| // ... código omitido | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment