示例#1
0
        private void Cancel(AuthenticationCancelledReason reason)
        {
            _active = false;
            _webSocket.Close();

            AuthenticationCancelled?.Invoke(this, new CancellationEventArgs(reason));
        }
示例#2
0
 /// <summary>
 /// Constructs a new <see cref="CancellationEventArgs"/>.
 /// </summary>
 /// <param name="reason">The reason for the cancellation.</param>
 public CancellationEventArgs(AuthenticationCancelledReason reason)
 {
     Reason = reason;
 }