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:
parent
c6bcdc3fac
commit
a854720c75
@ -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:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user