// This method gets called by the runtime. Use this method to add services to the container. public void ConfigureServices(Microsoft.Extensions.DependencyInjection.IServiceCollection services) { // Add framework services. services.AddApplicationInsightsTelemetry(Configuration); services.AddMvc(); services.Configure <RazorViewEngineOptions>(razor => razor.ViewLocationExpanders.Add(new ViewLocationExpander())); services.AddSwaggerGen(); services.ConfigureSwaggerDocument(options => { options.SingleApiVersion(new Info { Version = "v1", Title = "smtp4dev", Description = "SMTP server for development", TermsOfService = "None" }); }); services.UseSmtp4dev(); }