Beispiel #1
0
 /// <summary>
 ///     Sent by server to indicate how the authentication went
 /// </summary>
 /// <param name="state">How it went</param>
 /// <param name="authenticationToken"></param>
 /// <returns>
 ///     <see cref="AuthenticateReply" />
 /// </returns>
 public IAuthenticateReply CreateAuthenticationResult(AuthenticateReplyState state, string authenticationToken)
 {
     if (authenticationToken == null)
     {
         throw new ArgumentNullException("authenticationToken");
     }
     return(new AuthenticateReply {
         State = state, AuthenticationToken = authenticationToken
     });
 }
 /// <summary>
 ///     Sent by server to indicate how the authentication went
 /// </summary>
 /// <param name="state">How it went</param>
 /// <param name="authenticationToken"></param>
 /// <returns>
 ///     <see cref="AuthenticateReply" />
 /// </returns>
 public IAuthenticateReply CreateAuthenticationResult(AuthenticateReplyState state, string authenticationToken)
 {
     if (authenticationToken == null) throw new ArgumentNullException("authenticationToken");
     return new AuthenticateReply {State = state, AuthenticationToken = authenticationToken};
 }