1 instantiation of UnauthorizedHttpResult
Microsoft.AspNetCore.Http.Results (1)
ResultsCache.cs (1)
11
public static UnauthorizedHttpResult Unauthorized { get; } =
new
();
13 references to UnauthorizedHttpResult
Microsoft.AspNetCore.Http.Results (4)
ResultsCache.cs (1)
11
public static
UnauthorizedHttpResult
Unauthorized { get; } = new();
TypedResults.cs (2)
668
/// <returns>The created <see cref="
UnauthorizedHttpResult
"/> for the response.</returns>
669
public static
UnauthorizedHttpResult
Unauthorized() => ResultsCache.Unauthorized;
UnauthorizedHttpResult.cs (1)
16
/// Initializes a new instance of the <see cref="
UnauthorizedHttpResult
"/> class.
Microsoft.AspNetCore.Http.Results.Tests (7)
ResultsTests.cs (3)
1682
var
result = Results.Unauthorized() as
UnauthorizedHttpResult
;
1777
(() => Results.Unauthorized(), typeof(
UnauthorizedHttpResult
)),
TypedResultsTests.cs (1)
1461
var
result = TypedResults.Unauthorized();
UnauthorizedResultTests.cs (3)
16
var
result = new UnauthorizedHttpResult();
26
var
result = new UnauthorizedHttpResult();
41
var
result = new UnauthorizedHttpResult();
Microsoft.AspNetCore.Identity (2)
IdentityApiEndpointRouteBuilderExtensions.cs (2)
122
routeGroup.MapPost("/refresh", async Task<Results<Ok<AccessTokenResponse>,
UnauthorizedHttpResult
, SignInHttpResult, ChallengeHttpResult>>
142
routeGroup.MapGet("/confirmEmail", async Task<Results<ContentHttpResult,
UnauthorizedHttpResult
>>