added RaidDetails.razor + needed services
This commit is contained in:
parent
6da9b06e8a
commit
b18cc58665
15 changed files with 597 additions and 18 deletions
|
@ -8,12 +8,26 @@ var builder = WebApplication.CreateBuilder(args);
|
|||
// Add services to the container.
|
||||
builder.Services.AddRazorPages();
|
||||
|
||||
builder.Services.AddDbContext<LiebContext>(options =>
|
||||
options.UseSqlServer(builder.Configuration.GetConnectionString("LiebContext")));
|
||||
//builder.Services.AddDbContext<LiebContext>(options =>
|
||||
// options.UseSqlServer(builder.Configuration.GetConnectionString("LiebContext")), ServiceLifetime.Transient);
|
||||
builder.Services.AddDbContextFactory<LiebContext>(opt =>
|
||||
opt.UseSqlServer(builder.Configuration.GetConnectionString("LiebContext")), ServiceLifetime.Transient);
|
||||
|
||||
builder.Services.AddDatabaseDeveloperPageExceptionFilter();
|
||||
|
||||
builder.Services.AddServerSideBlazor();
|
||||
|
||||
builder.Services.AddScoped<RaidService>();
|
||||
builder.Services.AddScoped<UserService>();
|
||||
builder.Services.AddScoped<GuildWars2AccountService>();
|
||||
|
||||
|
||||
|
||||
|
||||
//builder.Services.AddTransient<RaidService>();
|
||||
//builder.Services.AddTransient<UserService>();
|
||||
//builder.Services.AddTransient<GuildWars2AccountService>();
|
||||
|
||||
builder.Services.AddAuthentication(opt =>
|
||||
{
|
||||
opt.DefaultScheme = CookieAuthenticationDefaults.AuthenticationScheme;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue