SchedulerService.GetSnapshot method (1 of 2)
Gets a snapshot of all scheduled jobs with their current state.
public IReadOnlyCollection<JobInfo> GetSnapshot()
Return Value
An IReadOnlyCollection containing job information for all scheduled jobs.
See Also
- record JobInfo
- class SchedulerService
- namespace Kestrun.Scheduling
SchedulerService.GetSnapshot method (2 of 2)
Gets a snapshot of all scheduled jobs with their current state, optionally filtered and formatted.
public IReadOnlyCollection<object> GetSnapshot(TimeZoneInfo? tz = null, bool asHashtable = false,
params string[] nameFilter)
parameter | description |
---|---|
tz | The time zone to display times in; defaults to UTC if not specified. |
asHashtable | Whether to return the result as PowerShell-friendly hashtables. |
nameFilter | Optional glob patterns to filter job names. |
Return Value
An IReadOnlyCollection containing job information for all scheduled jobs, either as JobInfo
objects or hashtables depending on asHashtable.
See Also
- class SchedulerService
- namespace Kestrun.Scheduling