Refactoring

This commit is contained in:
Simon Lübeß
2023-10-11 14:41:43 +02:00
parent 9c298c6e76
commit e4821d2d7e
6 changed files with 265 additions and 267 deletions

View File

@ -1,5 +1,6 @@
using DataAccess.Data;
using DataAccess.DbAccess;
using KIKunstKirstenKl<EFBFBD>ckner.Data;
using Radzen;
var builder = WebApplication.CreateBuilder(args);
@ -7,9 +8,14 @@ var builder = WebApplication.CreateBuilder(args);
// Add services to the container.
builder.Services.AddRazorPages();
builder.Services.AddServerSideBlazor();
builder.Services.AddScoped<TooltipService>();
builder.Services.AddScoped<DialogService>();
builder.Services.AddScoped<NotificationService>();
builder.Services.AddScoped<ImageGenerator>();
builder.Services.AddScoped<AiArtPageData>();
builder.Services.AddSingleton<ISqlDataAccess, SqlDataAccess>();
builder.Services.AddSingleton<BildInfoData>();
builder.Services.AddSingleton<WunschInfoData>();