/// <summary> /// Handles the MessageReceived event of the session. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The event data.</param> protected virtual void Session_MessageReceived(object sender, MessageEventArgs <Message> e) { }
/// <summary> /// Handles the UserAuthenticationSuccessMessageReceived event of the session. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The event data.</param> protected virtual void Session_UserAuthenticationSuccessMessageReceived(object sender, MessageEventArgs <SuccessMessage> e) { this.IsAuthenticated = true; }
/// <summary> /// Handles the UserAuthenticationBannerMessageReceived event of the session. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The event data.</param> protected virtual void Session_UserAuthenticationBannerMessageReceived(object sender, MessageEventArgs <BannerMessage> e) { if (this.AuthenticationBanner != null) { this.AuthenticationBanner(this, new AuthenticationBannerEventArgs(this.Username, e.Message.Message, e.Message.Language)); } }
/// <summary> /// Handles the UserAuthenticationFailureReceived event of the session. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">The event data.</param> protected virtual void Session_UserAuthenticationFailureReceived(object sender, MessageEventArgs <FailureMessage> e) { this.ErrorMessage = e.Message.Message; this.IsAuthenticated = false; }