6 references to StatusCode
Microsoft.AspNetCore.Http.Results (3)
UnauthorizedHttpResult.cs (3)
27
int? IStatusCodeHttpResult.StatusCode =>
StatusCode
;
37
HttpResultsHelper.Log.WritingResultAsStatusCode(logger,
StatusCode
);
39
httpContext.Response.StatusCode =
StatusCode
;
Microsoft.AspNetCore.Http.Results.Tests (3)
ResultsTests.cs (1)
1685
Assert.Equal(StatusCodes.Status401Unauthorized, result.
StatusCode
);
TypedResultsTests.cs (1)
1464
Assert.Equal(StatusCodes.Status401Unauthorized, result.
StatusCode
);
UnauthorizedResultTests.cs (1)
19
Assert.Equal(StatusCodes.Status401Unauthorized, result.
StatusCode
);