Add sample endpoint that simulates a very slow one

This commit is contained in:
Sipke Schoorstra 2023-04-13 20:00:45 +02:00
parent b035255042
commit ae7b06059a

View file

@ -0,0 +1,18 @@
using FastEndpoints;
namespace Elsa.WorkflowServer.Web.Endpoints;
public class SlowEndpoint : EndpointWithoutRequest
{
public override void Configure()
{
Get("/slow");
AllowAnonymous();
}
public override async Task HandleAsync(CancellationToken ct)
{
await Task.Delay(TimeSpan.FromSeconds(10), ct);
await SendOkAsync(ct);
}
}