2 instantiations of CsrfProtectionResult
Microsoft.AspNetCore.Http.Abstractions (2)
Antiforgery\CsrfProtectionResult.cs (2)
11private static readonly CsrfProtectionResult _allowed = new(isAllowed: true); 12private static readonly CsrfProtectionResult _denied = new(isAllowed: false);
17 references to CsrfProtectionResult
Microsoft.AspNetCore (8)
Internal\DefaultCsrfProtection.cs (8)
22public async ValueTask<CsrfProtectionResult> ValidateAsync(HttpContext context) 31return CsrfProtectionResult.Allowed(); 40return CsrfProtectionResult.Allowed(); 58return CsrfProtectionResult.Allowed(); 66return CsrfProtectionResult.Denied(); 73? CsrfProtectionResult.Allowed() 74: CsrfProtectionResult.Denied(); 80return CsrfProtectionResult.Allowed();
Microsoft.AspNetCore.Http.Abstractions (9)
Antiforgery\CsrfProtectionResult.cs (6)
11private static readonly CsrfProtectionResult _allowed = new(isAllowed: true); 12private static readonly CsrfProtectionResult _denied = new(isAllowed: false); 25/// Returns a <see cref="CsrfProtectionResult"/> indicating the request is allowed. 27public static CsrfProtectionResult Allowed() => _allowed; 30/// Returns a <see cref="CsrfProtectionResult"/> indicating the request is denied. 32public static CsrfProtectionResult Denied() => _denied;
Antiforgery\ICsrfProtection.cs (3)
20/// A <see cref="ValueTask{TResult}"/> that resolves to a <see cref="CsrfProtectionResult"/> whose 21/// <see cref="CsrfProtectionResult.IsAllowed"/> is <see langword="true"/> when the request is 25ValueTask<CsrfProtectionResult> ValidateAsync(HttpContext context);