diff --git a/Program.cs b/Program.cs index 2a4c4f7..0d6ddbd 100644 --- a/Program.cs +++ b/Program.cs @@ -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();