* Added method to Delete task

* Added WorkingDirectory to RunProcess method
This commit is contained in:
2025-02-16 17:42:10 +01:00
parent 8aad585ce9
commit 06efb220dc
4 changed files with 39 additions and 4 deletions

View File

@@ -19,4 +19,10 @@ public class HangfireService(HttpClient httpClient)
HttpResponseMessage responseMessage = await httpClient.PostAsJsonAsync("api/HangfireJobs/AddTask", taskSchedulerDto);
return responseMessage.IsSuccessStatusCode ? 1 : 0;
}
public async Task<int> DeleteTaskSchedulerAsync(TaskSchedulerDto taskSchedulerDto)
{
HttpResponseMessage responseMessage = await httpClient.PostAsJsonAsync("api/HangfireJobs/DeleteTask", taskSchedulerDto);
return responseMessage.IsSuccessStatusCode ? 1 : 0;
}
}