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