107 references to TypedResults
Aspire.Dashboard (1)
DashboardEndpointsBuilder.cs (1)
53endpoints.MapPost("/authentication/logout", () => TypedResults.SignOut(authenticationSchemes: [CookieAuthenticationDefaults.AuthenticationScheme, OpenIdConnectDefaults.AuthenticationScheme])).SkipStatusCodePages();
AzureDataLakeEndToEnd.WebApi (2)
Program.cs (2)
16return TypedResults.Text($"{result.Value.Uri} created."); 22return TypedResults.Text($"{result.Value.Uri} created.");
Keycloak.Web (2)
LoginLogoutEndpointRouteBuilderExtensions.cs (2)
13group.MapGet("/login", () => TypedResults.Challenge(new AuthenticationProperties { RedirectUri = "/" })) 16group.MapPost("/logout", () => TypedResults.SignOut(new AuthenticationProperties { RedirectUri = "/" },
Microsoft.AspNetCore.Http.Results (58)
Results.cs (58)
42=> TypedResults.Challenge(properties, authenticationSchemes); 60=> TypedResults.Forbid(properties, authenticationSchemes); 73=> TypedResults.SignIn(principal, properties, authenticationScheme); 82=> TypedResults.SignOut(properties, authenticationSchemes); 117=> TypedResults.Content(content, contentType, contentEncoding, statusCode); 152=> TypedResults.Text(content, contentType, contentEncoding, statusCode); 162=> TypedResults.Text(utf8Content, contentType, statusCode); 171=> TypedResults.Content(content, contentType); 244=> TypedResults.Json(data, options, contentType, statusCode); 260=> TypedResults.Json(data, jsonTypeInfo, contentType, statusCode); 276=> TypedResults.Json(data, context, contentType, statusCode); 301=> TypedResults.File(fileContents, contentType, fileDownloadName, enableRangeProcessing, lastModified, entityTag); 326=> TypedResults.Bytes(contents, contentType, fileDownloadName, enableRangeProcessing, lastModified, entityTag); 349=> TypedResults.Bytes(contents, contentType, fileDownloadName, enableRangeProcessing, lastModified, entityTag); 380=> TypedResults.File(fileStream, contentType, fileDownloadName, lastModified, entityTag, enableRangeProcessing); 411=> TypedResults.Stream(stream, contentType, fileDownloadName, lastModified, entityTag, enableRangeProcessing); 439=> TypedResults.Stream(pipeReader, contentType, fileDownloadName, lastModified, entityTag, enableRangeProcessing); 458=> TypedResults.Stream(streamWriterCallback, contentType, fileDownloadName, lastModified, entityTag); 482? TypedResults.PhysicalFile(path, contentType, fileDownloadName, lastModified, entityTag, enableRangeProcessing) 483: TypedResults.VirtualFile(path, contentType, fileDownloadName, lastModified, entityTag, enableRangeProcessing); 507=> TypedResults.Redirect(url, permanent, preserveMethod); 531=> TypedResults.LocalRedirect(localUrl, permanent, preserveMethod); 558=> TypedResults.RedirectToRoute(routeName, routeValues, permanent, preserveMethod, fragment); 586=> TypedResults.RedirectToRoute(routeName, routeValues, permanent, preserveMethod, fragment); 594=> TypedResults.StatusCode(statusCode); 610=> value is null ? TypedResults.NotFound() : TypedResults.NotFound(value); 617=> TypedResults.Unauthorized(); 633=> error is null ? TypedResults.BadRequest() : TypedResults.BadRequest(error); 649=> error is null ? TypedResults.Conflict() : TypedResults.Conflict(error); 656=> TypedResults.NoContent(); 672=> value is null ? TypedResults.Ok() : TypedResults.Ok(value); 688=> error is null ? TypedResults.UnprocessableEntity() : TypedResults.UnprocessableEntity(error); 703=> error is null ? TypedResults.InternalServerError() : TypedResults.InternalServerError(error); 722=> TypedResults.Problem(detail, instance, statusCode, title, type, extensions); 743=> TypedResults.Problem(detail, instance, statusCode, title, type, extensions); 751=> TypedResults.Problem(problemDetails); 815return TypedResults.Problem(problemDetails); 836=> TypedResults.Created(); 854=> value is null ? TypedResults.Created(uri) : TypedResults.Created(uri, value); 872=> value is null ? TypedResults.Created(uri) : TypedResults.Created(uri, value); 906=> value is null ? TypedResults.CreatedAtRoute(routeName, routeValues) : TypedResults.CreatedAtRoute(value, routeName, routeValues); 918=> value is null ? TypedResults.CreatedAtRoute(routeName, routeValues) : TypedResults.CreatedAtRoute(value, routeName, routeValues); 936=> value is null ? TypedResults.Accepted(uri) : TypedResults.Accepted(uri, value); 970=> value is null ? TypedResults.AcceptedAtRoute(routeName, routeValues) : TypedResults.AcceptedAtRoute(value, routeName, routeValues); 982=> value is null ? TypedResults.AcceptedAtRoute(routeName, routeValues) : TypedResults.AcceptedAtRoute(value, routeName, routeValues);
Microsoft.AspNetCore.Identity (37)
IdentityApiEndpointRouteBuilderExtensions.cs (36)
94return TypedResults.Ok(); 119return TypedResults.Problem(result.ToString(), statusCode: StatusCodes.Status401Unauthorized); 123return TypedResults.Empty; 137return TypedResults.Content(optionsJson, contentType: "application/json"); 169return TypedResults.Problem(result.ToString(), statusCode: StatusCodes.Status401Unauthorized); 173return TypedResults.Empty; 192return TypedResults.Challenge(); 196return TypedResults.SignIn(newPrincipal, authenticationScheme: IdentityConstants.BearerScheme); 206return TypedResults.Unauthorized(); 215return TypedResults.Unauthorized(); 238return TypedResults.Unauthorized(); 241return TypedResults.Text("Thank you for confirming your email."); 256return TypedResults.Ok(); 266return TypedResults.Ok(); 291return TypedResults.Ok(); 324return TypedResults.Ok(); 339return TypedResults.NotFound(); 352return TypedResults.Content(optionsJson, contentType: "application/json"); 364return TypedResults.NotFound(); 407return TypedResults.Ok(CreatePasskeyInfoResponse(attestationResult.Passkey)); 419return TypedResults.NotFound(); 429return TypedResults.Ok(responses); 441return TypedResults.NotFound(); 458return TypedResults.NotFound(); 468return TypedResults.Ok(CreatePasskeyInfoResponse(passkey)); 480return TypedResults.NotFound(); 490return TypedResults.NotFound(); 499return TypedResults.Ok(); 509return TypedResults.NotFound(); 568return TypedResults.Ok(new TwoFactorResponse 584return TypedResults.NotFound(); 587return TypedResults.Ok(await CreateInfoResponseAsync(user, userManager)); 596return TypedResults.NotFound(); 629return TypedResults.Ok(await CreateInfoResponseAsync(user, userManager)); 689TypedResults.ValidationProblem(new Dictionary<string, string[]> { 718return TypedResults.ValidationProblem(errorDictionary);
PasskeyEndpointsEndpointRouteBuilderExtensions.cs (1)
141return TypedResults.Json(
Stress.ApiService (7)
Program.cs (7)
64return TypedResults.Text("Generated incompatible.histogram.bounds on incompatible-histogram-metrics. Select both stress.layout dimensions on the Metrics page to see the percentile warning; count mode remains available."); 72return TypedResults.Text("Generated histogram.unavailable.percentiles on unavailable-histogram-percentiles. Select both stress.layout dimensions and a five-minute duration on the Metrics graph, with Show count off, to see available data on both sides of an unavailable interval."); 80return TypedResults.Text("Generated histogram.unavailable.exemplars on unavailable-histogram-exemplars. Select both stress.layout dimensions, a five-minute duration, and Show count off. The graph has exemplar markers before, during, and after the gap; the table's unavailable-percentile row shows no-data dashes and two exemplars linked to traces."); 88return TypedResults.Text("Generated histogram.delta.intervals on delta-histogram-intervals. Select a five-minute duration on the Metrics page. Percentiles change across three distributions; Show count sums all 100 observations per second instead of merging equal-count intervals."); 96return TypedResults.Text("Generated histogram.cumulative.resets on cumulative-histogram-resets. Select a five-minute duration on the Metrics page. Show count displays three rising ramps separated by resets; percentile mode follows the changing bucket layouts without subtracting across aggregations."); 104return TypedResults.Text("Generated histogram.delta.without.start on delta-histogram-without-start. Select a five-minute duration on the Metrics page. Both percentile and count modes show current observations despite every point omitting StartTimeUnixNano."); 112return TypedResults.Text("Generated histogram.shared.bounds on shared-histogram-bounds. Select both stress.layout dimensions and a five-minute duration on the Metrics page. Their different layouts merge at shared boundaries of 50 and 100 ms, keeping percentiles available without a warning.");