change the Admin monthly overview by figma - add tester

This commit is contained in:
MahanCh
2025-05-20 16:48:18 +03:30
parent acb6764271
commit f68739cc22
8 changed files with 299 additions and 76 deletions

View File

@@ -17,6 +17,7 @@ using ServiceHost.Hubs;
using ServiceHost.MiddleWare;
using WorkFlow.Infrastructure.Config;
using _0_Framework.Application.UID;
using ServiceHost.Test;
var builder = WebApplication.CreateBuilder(args);
@@ -49,6 +50,12 @@ builder.Services.AddTransient<IUidService, UidService>();
//services.AddSingleton<IWorkingTest, WorkingTest>();
//services.AddHostedService<JobWorker>();
#region Mahan
builder.Services.AddTransient<Tester>();
#endregion
builder.Services.Configure<FormOptions>(options =>
{
options.ValueCountLimit = int.MaxValue;
@@ -151,6 +158,15 @@ builder.Services.AddSignalR();
var app = builder.Build();
#region Mahan
app.UseStatusCodePagesWithRedirects("/error/{0}");
//the backend Tester
if (builder.Environment.IsDevelopment())
{
using var scope = app.Services.CreateScope();
var tester = scope.ServiceProvider.GetRequiredService<Tester>();
await tester.Test();
}
#endregion
//Create Http Pipeline