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)
13public async ValueTask<CsrfProtectionResult> ValidateAsync(HttpContext context) 22return CsrfProtectionResult.Allowed(); 31return CsrfProtectionResult.Allowed(); 49return CsrfProtectionResult.Allowed(); 57return CsrfProtectionResult.Denied(); 64? CsrfProtectionResult.Allowed() 65: CsrfProtectionResult.Denied(); 71return 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);