Ensure the EventWaitHandle is cleaned up, MainDom and BackgroundTaskRunner was not using HostingEnvironment.Stop correctly, ensures no exception is thrown when setting task result on a background task, ensure multiple terminations don't occur, ensure terminations are done if shutdown fails.

This commit is contained in:
Shannon
2019-10-18 11:08:58 +11:00
parent 81ae835564
commit b5f29f2390
4 changed files with 68 additions and 18 deletions

View File

@@ -120,6 +120,8 @@ namespace Umbraco.Core
{
_semaphore.Release();
_semaphore.Dispose();
}
// free unmanaged resources (unmanaged objects) and override a finalizer below.