-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature/styling and formatting (#130)
* Update CONTRIBUTING.md * Update dependabot.yml * Update FUNDING.yml * nuget updates * move test nugets into test csprojs * target frameworks netstandard2.0 and net8.0 * test naming updates * Update Pilgaard.ScheduledJobs.Tests.csproj * more cleanup, more nuget updates
- Loading branch information
1 parent
f042590
commit ea7a177
Showing
11 changed files
with
298 additions
and
289 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,26 @@ | ||
namespace Pilgaard.BackgroundJobs; | ||
|
||
|
||
/// <summary> | ||
/// IBackgroundJobScheduler is responsible for scheduling background jobs. | ||
/// </summary> | ||
internal interface IBackgroundJobScheduler | ||
{ | ||
/// <summary> | ||
/// Asynchronously retrieves an ordered enumerable of background job registrations. | ||
/// <para> | ||
/// Jobs that implement <see cref="IRecurringJob"/> are not retrieved, they are scheduled during startup. | ||
/// </para> | ||
/// <para> | ||
/// Each background job registration is returned when it should be run. | ||
/// </para> | ||
/// </summary> | ||
/// <param name="cancellationToken">The <see cref="CancellationToken"/> used for cancelling the enumeration.</param> | ||
/// <returns>An asynchronous enumerable of background job registrations.</returns> | ||
IAsyncEnumerable<BackgroundJobRegistration> GetBackgroundJobsAsync(CancellationToken cancellationToken); | ||
/// <summary> | ||
/// Asynchronously retrieves an ordered enumerable of background job registrations. | ||
/// <para> | ||
/// Jobs that implement <see cref="IRecurringJob"/> are not retrieved, they are scheduled during startup. | ||
/// </para> | ||
/// <para> | ||
/// Each background job registration is returned when it should be run. | ||
/// </para> | ||
/// </summary> | ||
/// <param name="cancellationToken">The <see cref="CancellationToken"/> used for cancelling the enumeration.</param> | ||
/// <returns>An asynchronous enumerable of background job registrations.</returns> | ||
IAsyncEnumerable<BackgroundJobRegistration> GetBackgroundJobsAsync(CancellationToken cancellationToken); | ||
|
||
/// <summary> | ||
/// Retrieves all <see cref="BackgroundJobRegistration"/>s where <see cref="BackgroundJobRegistration.IsRecurringJob"/> is <c>true</c> | ||
/// </summary> | ||
/// <returns>An enumerable of background job registrations where <see cref="BackgroundJobRegistration.IsRecurringJob"/> is <c>true</c></returns> | ||
IEnumerable<BackgroundJobRegistration> GetRecurringJobs(); | ||
/// <summary> | ||
/// Retrieves all <see cref="BackgroundJobRegistration"/>s where <see cref="BackgroundJobRegistration.IsRecurringJob"/> is <c>true</c> | ||
/// </summary> | ||
/// <returns>An enumerable of background job registrations where <see cref="BackgroundJobRegistration.IsRecurringJob"/> is <c>true</c></returns> | ||
IEnumerable<BackgroundJobRegistration> GetRecurringJobs(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters