-
-
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.
Merge branch 'develop' into feat/1246-allow-reordering-example-sentences
- 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.