|
1 | | -# Hangfire.RecurringJob |
| 1 | +# Hangfire.RecurringJob [](https://www.nuget.org/packages/IeuanWalker.Hangfire.RecurringJob) [](https://www.nuget.org/packages/IeuanWalker.Hangfire.RecurringJob) |
| 2 | + |
| 3 | +[](https://opensource.org/licenses/MIT) |
2 | 4 | [](https://github.com/IeuanWalker/Hangfire.RecurringJob/actions/workflows/build.yml) |
3 | 5 |
|
4 | | -This is a package that automatically generates the hanfire recurring jobs `AddOrUpdate` code, using source generators. |
| 6 | +Automatically generates the recurring job registration code using source generators |
5 | 7 |
|
6 | 8 | ## How to use it? |
7 | 9 | 1. Install the [NuGet package](#) into your project. |
8 | 10 | ``` |
9 | 11 | Install-Package IeuanWalker.Hangfire.RecurringJob |
10 | 12 | ``` |
11 | 13 |
|
12 | | -2. Add the `RecurringJob` attribute to a class, and create a `Execute()` method. |
| 14 | +2. Add the `RecurringJob` attribute to a class, and create an `Execute()` method. |
13 | 15 | ```csharp |
14 | 16 | [RecurringJob] |
15 | 17 | public class RecurringJob1 |
@@ -49,15 +51,15 @@ public class RecurringJob4 |
49 | 51 | } |
50 | 52 | ``` |
51 | 53 | 3. Register the recurring jobs |
52 | | -> Once a `RecurringJob` attribute has been added to a class in your project a exention method for `IApplicationBuilder` will automatically be created. |
53 | | -> The extention method name convention is AddRecurringJobsFrom + your assebly name. |
| 54 | +> Once a `RecurringJob` attribute has been added to a class in your project an extension method for `IApplicationBuilder` will automatically be created. |
| 55 | +> The extension method name convention is AddRecurringJobsFrom + your assembly name. |
54 | 56 | ```csharp |
55 | 57 | app.AddRecurringJobsFromExampleProject(); |
56 | 58 | ``` |
57 | 59 |
|
58 | 60 | ## Example |
59 | 61 | Here is an example of what it looks like in use - |
60 | | -> Left is example code, right is the generated code |
| 62 | +> Left is the example code, and right is the generated code |
61 | 63 |
|
62 | 64 |  |
63 | 65 |
|
|
0 commit comments