Update FastEndpoints and empty resume request

Co-authored-by: sfmskywalker <938393+sfmskywalker@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2026-09-04 21:40:45 +00:00 committed by GitHub
parent 8804dda467
commit 4efdf5fbff
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 5 additions and 10 deletions

View file

@ -47,9 +47,9 @@
</ItemGroup> </ItemGroup>
<!-- .NET 10 specific package versions --> <!-- .NET 10 specific package versions -->
<ItemGroup Condition="'$(TargetFramework)' == 'net10.0'"> <ItemGroup Condition="'$(TargetFramework)' == 'net10.0'">
<PackageVersion Include="FastEndpoints" Version="7.2.0" /> <PackageVersion Include="FastEndpoints" Version="8.2.0" />
<PackageVersion Include="FastEndpoints.Security" Version="7.2.0" /> <PackageVersion Include="FastEndpoints.Security" Version="8.2.0" />
<PackageVersion Include="FastEndpoints.Swagger" Version="7.2.0" /> <PackageVersion Include="FastEndpoints.Swagger" Version="8.2.0" />
<PackageVersion Include="Microsoft.AspNetCore.Authorization" Version="10.0.9"/> <PackageVersion Include="Microsoft.AspNetCore.Authorization" Version="10.0.9"/>
<PackageVersion Include="Microsoft.AspNetCore.Components" Version="10.0.9"/> <PackageVersion Include="Microsoft.AspNetCore.Components" Version="10.0.9"/>
<PackageVersion Include="Microsoft.AspNetCore.Components.WebAssembly" Version="10.0.9"/> <PackageVersion Include="Microsoft.AspNetCore.Components.WebAssembly" Version="10.0.9"/>

View file

@ -8,11 +8,6 @@ public class PauseRequest
public string? Reason { get; set; } 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> /// <summary>Body for the operator-force drain endpoint.</summary>
public class ForceDrainRequest public class ForceDrainRequest
{ {

View file

@ -12,7 +12,7 @@ namespace Elsa.Workflows.Api.Endpoints.RuntimeAdmin.Resume;
/// Idempotent on the success path. /// Idempotent on the success path.
/// </summary> /// </summary>
[PublicAPI] [PublicAPI]
internal sealed class ResumeEndpoint(IWorkflowRuntimeAdminService admin) : ElsaEndpoint<ResumeRequest, StatusResponse> internal sealed class ResumeEndpoint(IWorkflowRuntimeAdminService admin) : ElsaEndpoint<EmptyRequest, StatusResponse>
{ {
public override void Configure() public override void Configure()
{ {
@ -20,7 +20,7 @@ internal sealed class ResumeEndpoint(IWorkflowRuntimeAdminService admin) : ElsaE
ConfigurePermissions(PermissionNames.ManageWorkflowRuntime); 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(); var status = admin.GetStatus();
if ((status.State.Reason & QuiescenceReason.Drain) != 0) if ((status.State.Reason & QuiescenceReason.Drain) != 0)