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