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