Exemplo n.º 1
0
 /// <summary>
 /// Validates an anti-forgery token pair that was generated by the GetTokens method.
 /// </summary>
 /// <param name="context">The HTTP context associated with the current call.</param>
 /// <param name="antiForgeryTokenSet">The anti-forgery token pair (cookie and form token) for this request.
 /// </param>
 public void Validate([NotNull] HttpContext context, AntiForgeryTokenSet antiForgeryTokenSet)
 {
     Validate(context, antiForgeryTokenSet.CookieToken, antiForgeryTokenSet.FormToken);
 }
Exemplo n.º 2
0
 public void Validate([NotNull] HttpContext context, AntiForgeryTokenSet antiForgeryTokenSet)
 {
     Validate(context, antiForgeryTokenSet.CookieToken, antiForgeryTokenSet.FormToken);
 }