App does not Run as a service in a Windows Container (#62452)
authorEric Erhardt <eric.erhardt@microsoft.com>
Thu, 9 Dec 2021 17:53:22 +0000 (11:53 -0600)
committerGitHub <noreply@github.com>
Thu, 9 Dec 2021 17:53:22 +0000 (11:53 -0600)
commit36bf84fc4a89209f4fdbc1fc201e81afd8be49b0
treecc0d587bf0c6f76f6531b4e9125cd0cb8e9fc1e9
parent0e4909a530c76a18fccfa5ecc6e7f31f81eedee2
App does not Run as a service in a Windows Container (#62452)

Removing SessionId check in IsWindowsService(). This check is not correct when the process is being run in a Windows container. The container will get a different SessionId.

Fix #52416
src/libraries/Microsoft.Extensions.Hosting.WindowsServices/src/WindowsServiceHelpers.cs