public CsrfValidationException(CsrfTokenValidationResult result)
     : base(result.ToString())
 {
     Result = result;
 }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CsrfValidationException"/> class, with
 /// the provided <paramref name="result"/>.
 /// </summary>
 /// <param name="result">The CSRF token validation result.</param>
 public CsrfValidationException(CsrfTokenValidationResult result)
     : base(result.ToString())
 {
     Result = result;
 }