Update FastEndpoints and empty resume request
Co-authored-by: sfmskywalker <938393+sfmskywalker@users.noreply.github.com>
This commit is contained in:
parent
8804dda467
commit
4efdf5fbff
|
|
@ -47,9 +47,9 @@
|
|||
</ItemGroup>
|
||||
<!-- .NET 10 specific package versions -->
|
||||
<ItemGroup Condition="'$(TargetFramework)' == 'net10.0'">
|
||||
<PackageVersion Include="FastEndpoints" Version="7.2.0" />
|
||||
<PackageVersion Include="FastEndpoints.Security" Version="7.2.0" />
|
||||
<PackageVersion Include="FastEndpoints.Swagger" Version="7.2.0" />
|
||||
<PackageVersion Include="FastEndpoints" Version="8.2.0" />
|
||||
<PackageVersion Include="FastEndpoints.Security" Version="8.2.0" />
|
||||
<PackageVersion Include="FastEndpoints.Swagger" Version="8.2.0" />
|
||||
<PackageVersion Include="Microsoft.AspNetCore.Authorization" Version="10.0.9"/>
|
||||
<PackageVersion Include="Microsoft.AspNetCore.Components" Version="10.0.9"/>
|
||||
<PackageVersion Include="Microsoft.AspNetCore.Components.WebAssembly" Version="10.0.9"/>
|
||||
|
|
|
|||
|
|
@ -8,11 +8,6 @@ public class PauseRequest
|
|||
public string? Reason { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>Body for the resume endpoint. No fields today — kept as a class so the endpoint signature is uniform.</summary>
|
||||
public class ResumeRequest
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>Body for the operator-force drain endpoint.</summary>
|
||||
public class ForceDrainRequest
|
||||
{
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ namespace Elsa.Workflows.Api.Endpoints.RuntimeAdmin.Resume;
|
|||
/// Idempotent on the success path.
|
||||
/// </summary>
|
||||
[PublicAPI]
|
||||
internal sealed class ResumeEndpoint(IWorkflowRuntimeAdminService admin) : ElsaEndpoint<ResumeRequest, StatusResponse>
|
||||
internal sealed class ResumeEndpoint(IWorkflowRuntimeAdminService admin) : ElsaEndpoint<EmptyRequest, StatusResponse>
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
|
|
@ -20,7 +20,7 @@ internal sealed class ResumeEndpoint(IWorkflowRuntimeAdminService admin) : ElsaE
|
|||
ConfigurePermissions(PermissionNames.ManageWorkflowRuntime);
|
||||
}
|
||||
|
||||
public override async Task HandleAsync(ResumeRequest req, CancellationToken ct)
|
||||
public override async Task HandleAsync(EmptyRequest req, CancellationToken ct)
|
||||
{
|
||||
var status = admin.GetStatus();
|
||||
if ((status.State.Reason & QuiescenceReason.Drain) != 0)
|
||||
|
|
|
|||
Loading…
Reference in a new issue