Skip to content

Instantly share code, notes, and snippets.

@btodts
Created March 13, 2018 20:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save btodts/13c18b8773c258684f336c7e850cafbf to your computer and use it in GitHub Desktop.
Save btodts/13c18b8773c258684f336c7e850cafbf to your computer and use it in GitHub Desktop.
ConfigureServices Startup v2
// This method gets called by the runtime. Use this method to add services to the container.
public void ConfigureServices(IServiceCollection services)
{
// Add framework services.
services.AddDataAccessServices(Configuration.GetConnectionString("DefaultConnection"));
services.AddMvc();
// Add application services.
services.AddTransient<IEmailSender, EmailSender>();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment