示例#1
0
 /// <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)
 {
 }
示例#2
0
 /// <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;
 }
示例#3
0
 /// <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));
     }
 }
示例#4
0
 /// <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;
 }