You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
1.0 KiB
27 lines
1.0 KiB
using System;
|
|
using BlazorApp.Data;
|
|
using Microsoft.AspNetCore.Hosting;
|
|
using Microsoft.AspNetCore.Identity;
|
|
using Microsoft.AspNetCore.Identity.UI;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.Extensions.Configuration;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
//[assembly: HostingStartup(typeof(BlazorApp.Areas.Identity.IdentityHostingStartup))]
|
|
//namespace BlazorApp.Areas.Identity
|
|
//{
|
|
// public class IdentityHostingStartup : IHostingStartup
|
|
// {
|
|
// public void Configure(IWebHostBuilder builder)
|
|
// {
|
|
// builder.ConfigureServices((context, services) => {
|
|
// services.AddDbContext<BlazorAppContext>(options =>
|
|
// options.UseSqlServer(
|
|
// context.Configuration.GetConnectionString("BlazorAppContextConnection")));
|
|
|
|
// services.AddDefaultIdentity<IdentityUser>(options => options.SignIn.RequireConfirmedAccount = true)
|
|
// .AddEntityFrameworkStores<BlazorAppContext>();
|
|
// });
|
|
// }
|
|
// }
|
|
//} |