/// <summary> /// Causes the thread's message loop to be terminated. /// </summary> protected virtual void ExitThreadCore() { ThreadExit?.Invoke(this, EventArgs.Empty); }
internal static void RaiseThreadExit() => ThreadExit?.Invoke(null, EventArgs.Empty);
/// <summary> /// Called when [thread exit]. /// </summary> protected virtual void OnThreadExit() { ThreadExit?.Invoke(Id); }