added async to long load time items.

This commit is contained in:
Cameron Taylor 2026-04-22 15:07:01 -04:00
parent 9cc04a6133
commit 9333386aa7

View File

@ -51,13 +51,12 @@ HTTPROOT = env.ContentRootPath;
VSERVERWS.Global.Globals.IsDevelopment = app.Environment.IsDevelopment();
//VSERVERWS.Global.Globals.IsDevelopment = false;
//VSERVERWS.Global.Globals.IsDevelopment = app.Environment.IsDevelopment();
VSERVERWS.Global.Globals.IsDevelopment = false;
VSERVERWS.Global.Globals.LoadPrinters();
await Task.Run(() => VSERVERWS.Global.Globals.LoadPrinters());
CVGlobal.TryGlobalPRELoadCVCollections(new[] { typeof(CVINVENTORY), typeof(CVCustomers) });
await Task.Run(() => CVGlobal.TryGlobalPRELoadCVCollections(new[] { typeof(CVINVENTORY), typeof(CVCustomers) }));
@ -74,9 +73,9 @@ app.UseAuthorization();
app.MapRazorPages();
app.Run();
// app.Run();
await app.RunAsync();