public override void NotifyProcessExit(int exitCode) { if (!CallbackChannelIsReady()) { return; // нет подписчика } _eventChannel.ProcessExited(exitCode); _serviceHost?.Close(); }
public void NotifyProcessExit(int exitCode) { _threadManager.DetachFromCurrentThread(); _callbackService.ProcessExited(exitCode); _server.Stop(); }