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