Interface IJobs
Defines the system for working with jobs.
public interface IJobs
- Extension Methods
Methods
Delete(JobId)
Deletes the Job with the specified jobId
.
Task Delete(JobId jobId)
Parameters
jobId
JobIdThe job id.
Returns
- Task
Awaitable task.
GetJob(JobId)
Gets the Job with the specified jobId
.
Task<Job?> GetJob(JobId jobId)
Parameters
jobId
JobIdThe job id.
Returns
GetJobs()
Gets all the Jobs.
Task<IEnumerable<Job>> GetJobs()
Returns
- Task<IEnumerable<Job>>
The jobs.
Resume(JobId)
Resumes the Job with the specified jobId
.
Task Resume(JobId jobId)
Parameters
jobId
JobIdThe job id.
Returns
- Task
Awaitable task.
Stop(JobId)
Stops the Job with the specified jobId
.
Task Stop(JobId jobId)
Parameters
jobId
JobIdThe job id.
Returns
- Task
Awaitable task.