Add DELETE request handling in command handler

Implemented the handling of DELETE HTTP requests in the
InvokeRecActionCommandHandler class. Previously, the DELETE
case was unhandled, and now it uses http.DeleteAsync to
send a DELETE request to the specified action.EndpointUri,
supporting cancellation with the cancel token.
This commit is contained in:
Developer 02 2025-11-26 17:29:58 +01:00
parent c6bcdc3fac
commit a854720c75

View File

@ -44,7 +44,7 @@ public class InvokeRecActionCommandHandler(ISender sender) : IRequestHandler<Inv
}
case "DELETE":
{
// Handle DELETE
using var response = await http.DeleteAsync(action.EndpointUri, cancel);
break;
}
default: