I want to write a Linux service (for example, a Windows service), but I do not know how to safely stop this service.
I read about
AssemblyLoadContext.Default.Unloading += MethodInvokedOnSigTerm;
but it does not exist on .NET Core 1.1.
Do you have any ideas?
source
share