public void ConfigureServices(IServiceCollection services)
{
services.AddMvc();
services.AddCaching();
services.AddSession();
services.AddSwaggerGen();
services.Configure<AppSettings>(Configuration.GetSection("AppSettings"));
services.Configure<MvcOptions>(options =>
{
//options.RespectBrowserAcceptHeader = true;
});
services.AddEntityFramework()
.AddInMemoryDatabase()
.AddDbContext<ApplicationDbContext>(options => { options.UseInMemoryDatabase(); });
services.AddIdentity<ApplicationUser, IdentityRole>()
.AddEntityFrameworkStores<ApplicationDbContext>()
.AddUserStore<ApplicationUserStore<ApplicationUser>>()
.AddDefaultTokenProviders();
services.AddTransient<ApplicationUserManager>();
services.AddTransient<ApplicationSignInManager>();
services.AddTransient<IUserImageProvider, GravatarProvider>();
services.AddAuthentication();
// https://github.com/aspnet/Entropy/blob/dev/samples/Logging.Elm/Startup.cs
services.AddElm();
}