public bool OnUnauthorizedError() { var cancel = new CancelEventArgs(true); UnauthorizedError?.Invoke(this, cancel); return(!cancel.Cancel); }