Shuttle.Esb.Scheduling
13.0.1
Prefix Reserved
dotnet add package Shuttle.Esb.Scheduling --version 13.0.1
NuGet\Install-Package Shuttle.Esb.Scheduling -Version 13.0.1
<PackageReference Include="Shuttle.Esb.Scheduling" Version="13.0.1" />
paket add Shuttle.Esb.Scheduling --version 13.0.1
#r "nuget: Shuttle.Esb.Scheduling, 13.0.1"
// Install Shuttle.Esb.Scheduling as a Cake Addin #addin nuget:?package=Shuttle.Esb.Scheduling&version=13.0.1 // Install Shuttle.Esb.Scheduling as a Cake Tool #tool nuget:?package=Shuttle.Esb.Scheduling&version=13.0.1
Shuttle.Esb.Scheduling
A simple scheduling solution built on Shuttle.Esb.
See Shuttle.Esb.Scheduling.Server for an example implementation of a scheduler.
Simple Configuration
A schedule has a name for your scheduled job, e.g. ProcessAccounts. You then use a cron expression to indicate when a ScheduleNotification
message is published. Any endpoint that is interested in the notification can then subscribe to the ScheduleNotification
message and perform the relevant processing.
cron samples
Format is {minute} {hour} {day-of-month} {month} {day-of-week}
{minutes} : 0-59 , - * /
{hours} : 0-23 , - * /
{day-of-month} 1-31 , - * ? / L W
{month} : 1-12 or JAN-DEC , - * /
{day-of-week} : 1-7 or SUN-SAT , - * ? / L #
Examples:
* * * * * - is every minute of every hour of every day of every month
5,10-12,17/5 * * * * - minute 5, 10, 11, 12, and every 5th minute after that
How does it fit together?
The basic idea behind the scheduling is that you will have endpoints that already contain the required behaviour. For instance, you may have a PrintInvoices
that you can send to an endpoint to perform the processing. You periodically click on a button and this sends off the command. However, you do not want to necessarily send the PrintInvoices from the scheduler as it should not be that tightly coupled to any message.
Instead you can set up how often a named ScheduleNotification
is published. In this case it may be the same endpoint that processes the PrintInvoices
can subscribe to the ScheduleNotification
. It is, therefore, quite conceivable that an endpoint may receive a number of published ScheduleNotification
messages, each with a different Name
. The handler for this command on the endpoint could use a switch
statement to then do a bus.Send
to send the relevant actual command to be processed, typically by configuring the message to be sent locally.
By adding this layer of indirection we can have enterprise-grade scheduling that is not at all intrusive and leverages existing functionality.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 is compatible. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
- Microsoft.Extensions.Hosting (>= 7.0.0)
- Shuttle.Core.Cron (>= 10.1.3)
- Shuttle.Core.Data (>= 13.0.2)
- Shuttle.Core.DependencyInjection (>= 1.0.1)
- Shuttle.Esb (>= 13.2.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
13.0.1 | 403 | 12/1/2022 |
13.0.0 | 368 | 11/18/2022 |
12.0.6 | 529 | 4/9/2022 |
12.0.5 | 490 | 4/9/2022 |
12.0.4 | 441 | 11/10/2021 |
12.0.3 | 412 | 11/8/2021 |
12.0.2 | 364 | 11/8/2021 |
12.0.1 | 422 | 11/7/2021 |
12.0.0 | 391 | 11/1/2021 |
11.0.1 | 694 | 6/21/2019 |
11.0.0 | 654 | 6/21/2019 |
2.1.6 | 1,221 | 10/23/2016 |
2.1.5 | 1,161 | 4/24/2016 |
2.1.3 | 1,044 | 3/27/2016 |