1 instantiation of ForbidHttpResult
Microsoft.AspNetCore.Http.Results (1)
TypedResults.cs (1)
59=> new(authenticationSchemes: authenticationSchemes ?? Array.Empty<string>(), properties);
17 references to ForbidHttpResult
Microsoft.AspNetCore.Http.Results (8)
ForbidHttpResult.cs (5)
17/// Initializes a new instance of <see cref="ForbidHttpResult"/>. 25/// Initializes a new instance of <see cref="ForbidHttpResult"/> with the 35/// Initializes a new instance of <see cref="ForbidHttpResult"/> with the 46/// Initializes a new instance of <see cref="ForbidHttpResult"/> with the 58/// Initializes a new instance of <see cref="ForbidHttpResult"/> with the
TypedResults.cs (3)
44/// Creates a <see cref="ForbidHttpResult"/> that on execution invokes <see cref="AuthenticationHttpContextExtensions.ForbidAsync(HttpContext, string?, AuthenticationProperties?)"/>. 57/// <returns>The created <see cref="ForbidHttpResult"/> for the response.</returns> 58public static ForbidHttpResult Forbid(AuthenticationProperties? properties = null, IList<string>? authenticationSchemes = null)
Microsoft.AspNetCore.Http.Results.Tests (9)
ForbidResultTests.cs (5)
25var result = new ForbidHttpResult("", null); 49var result = new ForbidHttpResult(new[] { "Scheme1", "Scheme2" }, authProperties); 76var result = new ForbidHttpResult(expected); 98var result = new ForbidHttpResult(expected) 115var result = new ForbidHttpResult();
ResultsTests.cs (3)
394var result = Results.Forbid(properties, authenticationSchemes) as ForbidHttpResult; 1756(() => Results.Forbid(null, null), typeof(ForbidHttpResult)),
TypedResultsTests.cs (1)
442var result = TypedResults.Forbid(properties, authenticationSchemes);