Allow FastEndpoints EmptyRequest in Elsa endpoint wrappers
Co-authored-by: sfmskywalker <938393+sfmskywalker@users.noreply.github.com>
This commit is contained in:
parent
750549c797
commit
016ffe5d8d
|
|
@ -38,7 +38,7 @@ public abstract class ElsaEndpointWithoutRequest<TResponse> : EndpointWithoutReq
|
|||
}
|
||||
}
|
||||
|
||||
public class ElsaEndpoint<TRequest, TResponse> : Endpoint<TRequest, TResponse> where TRequest : notnull, new() where TResponse : notnull
|
||||
public class ElsaEndpoint<TRequest, TResponse> : Endpoint<TRequest, TResponse> where TRequest : notnull where TResponse : notnull
|
||||
{
|
||||
protected void ConfigurePermissions(params string[] permissions)
|
||||
{
|
||||
|
|
@ -49,7 +49,7 @@ public class ElsaEndpoint<TRequest, TResponse> : Endpoint<TRequest, TResponse> w
|
|||
}
|
||||
}
|
||||
|
||||
public class ElsaEndpoint<TRequest, TResponse, TMapper> : Endpoint<TRequest, TResponse, TMapper> where TRequest : notnull, new() where TResponse : notnull where TMapper : class, IMapper, new()
|
||||
public class ElsaEndpoint<TRequest, TResponse, TMapper> : Endpoint<TRequest, TResponse, TMapper> where TRequest : notnull where TResponse : notnull where TMapper : class, IMapper, new()
|
||||
{
|
||||
protected void ConfigurePermissions(params string[] permissions)
|
||||
{
|
||||
|
|
@ -60,7 +60,7 @@ public class ElsaEndpoint<TRequest, TResponse, TMapper> : Endpoint<TRequest, TRe
|
|||
}
|
||||
}
|
||||
|
||||
public class ElsaEndpoint<TRequest> : Endpoint<TRequest> where TRequest : notnull, new()
|
||||
public class ElsaEndpoint<TRequest> : Endpoint<TRequest> where TRequest : notnull
|
||||
{
|
||||
protected void ConfigurePermissions(params string[] permissions)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ namespace Elsa.Workflows.Api.Endpoints.RuntimeAdmin.Resume;
|
|||
/// Idempotent on the success path.
|
||||
/// </summary>
|
||||
[PublicAPI]
|
||||
internal sealed class ResumeEndpoint(IWorkflowRuntimeAdminService admin) : ElsaEndpointWithoutRequest<StatusResponse>
|
||||
internal sealed class ResumeEndpoint(IWorkflowRuntimeAdminService admin) : ElsaEndpoint<EmptyRequest, StatusResponse>
|
||||
{
|
||||
public override void Configure()
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue