added async to long load time items.
This commit is contained in:
parent
9cc04a6133
commit
9333386aa7
13
Program.cs
13
Program.cs
@ -51,13 +51,12 @@ HTTPROOT = env.ContentRootPath;
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
VSERVERWS.Global.Globals.IsDevelopment = app.Environment.IsDevelopment();
|
//VSERVERWS.Global.Globals.IsDevelopment = app.Environment.IsDevelopment();
|
||||||
//VSERVERWS.Global.Globals.IsDevelopment = false;
|
VSERVERWS.Global.Globals.IsDevelopment = false;
|
||||||
|
|
||||||
VSERVERWS.Global.Globals.LoadPrinters();
|
await Task.Run(() => VSERVERWS.Global.Globals.LoadPrinters());
|
||||||
|
|
||||||
|
await Task.Run(() => CVGlobal.TryGlobalPRELoadCVCollections(new[] { typeof(CVINVENTORY), typeof(CVCustomers) }));
|
||||||
CVGlobal.TryGlobalPRELoadCVCollections(new[] { typeof(CVINVENTORY), typeof(CVCustomers) });
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -74,9 +73,9 @@ app.UseAuthorization();
|
|||||||
|
|
||||||
app.MapRazorPages();
|
app.MapRazorPages();
|
||||||
|
|
||||||
app.Run();
|
// app.Run();
|
||||||
|
|
||||||
|
|
||||||
|
await app.RunAsync();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user