Created
March 13, 2018 20:22
-
-
Save btodts/13c18b8773c258684f336c7e850cafbf to your computer and use it in GitHub Desktop.
ConfigureServices Startup v2
This file contains 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
// 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