Skip to content

Instantly share code, notes, and snippets.

@wellingtonjhn
Last active July 27, 2018 05:48
Show Gist options
  • Select an option

  • Save wellingtonjhn/fbfb83845b738cea6a1767b4a6d7bc29 to your computer and use it in GitHub Desktop.

Select an option

Save wellingtonjhn/fbfb83845b738cea6a1767b4a6d7bc29 to your computer and use it in GitHub Desktop.
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