1 instantiation of Ok
Microsoft.AspNetCore.Http.Results (1)
ResultsCache.cs (1)
15
public static Ok Ok { get; } =
new
();
20 references to Ok
Microsoft.AspNetCore.Http.Results (5)
Ok.cs (1)
19
/// Initializes a new instance of the <see cref="
Ok
"/> class with the values.
OkOfT.cs (1)
20
/// Initializes a new instance of the <see cref="
Ok
"/> class with the values.
ResultsCache.cs (1)
15
public static
Ok
Ok { get; } = new();
TypedResults.cs (2)
708
/// <returns>The created <see cref="HttpResults.
Ok
"/> for the response.</returns>
709
public static
Ok
Ok() => ResultsCache.Ok;
Microsoft.AspNetCore.Http.Results.Tests (11)
OkResultTests.cs (7)
21
var
result = new Ok();
31
var
result = new Ok();
48
static
Ok
MyApi() { throw new NotImplementedException(); }
53
PopulateMetadata<
Ok
>(((Delegate)MyApi).GetMethodInfo(), builder);
65
var
result = new Ok();
76
Assert.Throws<ArgumentNullException>("method", () => PopulateMetadata<
Ok
>(null, new RouteEndpointBuilder(requestDelegate: null, RoutePatternFactory.Parse("/"), order: 0)));
77
Assert.Throws<ArgumentNullException>("builder", () => PopulateMetadata<
Ok
>(((Delegate)PopulateMetadata_ThrowsArgumentNullException_WhenMethodOrBuilderAreNull).GetMethodInfo(), null));
ResultsTests.cs (3)
1235
var
result = Results.Ok() as
Ok
;
1763
(() => Results.Ok(null), typeof(
Ok
)),
TypedResultsTests.cs (1)
1051
var
result = TypedResults.Ok();
Microsoft.AspNetCore.Identity (4)
IdentityApiEndpointRouteBuilderExtensions.cs (4)
57
routeGroup.MapPost("/register", async Task<Results<
Ok
, ValidationProblem>>
193
routeGroup.MapPost("/resendConfirmationEmail", async Task<
Ok
>
206
routeGroup.MapPost("/forgotPassword", async Task<Results<
Ok
, ValidationProblem>>
225
routeGroup.MapPost("/resetPassword", async Task<Results<
Ok
, ValidationProblem>>