Exemplo n.º 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)
 {
 }
Exemplo n.º 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;
 }
Exemplo n.º 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));
     }
 }
Exemplo n.º 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;
 }