change the Admin monthly overview by figma - add tester
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user