Resource wurde entfernt und IStringLocalizer<Resource> durch IStringLocalizer ersetzt; die Injektion erfolgt in program.cs

This commit is contained in:
Developer 02
2024-05-17 14:24:12 +02:00
parent 77a4359bb2
commit 248c954ce3
6 changed files with 11 additions and 8 deletions

View File

@@ -1,6 +1,8 @@
using DigitalData.Core.API;
using DigitalData.EmailProfilerDispatcher.API.Resources;
using DigitalData.EmailProfilerDispatcher.Application;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Localization;
var builder = WebApplication.CreateBuilder(args);
@@ -16,6 +18,8 @@ builder.Services.AddDispatcher(options => options.UseSqlServer(config.GetConnect
builder.Services.AddEndpointsApiExplorer();
builder.Services.AddSwaggerGen();
builder.Services.AddSingleton<IStringLocalizer, StringLocalizer<Resource>>();
var app = builder.Build();
// Configure the HTTP request pipeline.