-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* rework DotnetProjectView.svelte to await a call to `miniLcmApiProvider` instead of polling the override services * clear mini lcm api provider when the DotnetProjectView is destroyed, also dispose of the api when clearing it from the provider * only shutdown hosted services on close instead of the whole maui app which caused errors on close * ensure on shutdown all FwData projects are properly closed * save fwdata changes on each API call * simplify tasks for fw lite, change Lexbox Local server to use oauth proxy port
- Loading branch information
Showing
19 changed files
with
269 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,14 +16,16 @@ public void Shutdown() | |
if (App == null) return; | ||
|
||
var logger = App.Services.GetRequiredService<ILogger<MauiApp>>(); | ||
var adapter = App.Services.GetRequiredService<FwLiteMauiKernel.HostedServiceAdapter>(); | ||
try | ||
{ | ||
logger.LogInformation("Disposing app"); | ||
App.DisposeAsync().GetAwaiter().GetResult(); | ||
logger.LogInformation("Disposing hosted services"); | ||
//I tried to dispose of the app, but that caused other issues on shutdown, so we're just going to dispose of the hosted services | ||
adapter.DisposeAsync().GetAwaiter().GetResult(); | ||
Check warning on line 24 in backend/FwLite/FwLiteMaui/MauiProgram.cs GitHub Actions / Publish FW Lite app for Windows
|
||
} | ||
catch (Exception e) | ||
{ | ||
logger.LogError(e, "Failed to dispose app"); | ||
logger.LogError(e, "Failed to dispose hosted services"); | ||
throw; | ||
} | ||
}) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.