Add sample endpoint that simulates a very slow one
This commit is contained in:
parent
b035255042
commit
ae7b06059a
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue