Пример #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);
 }