You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+46
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,52 @@ cron expression parser and executor for dotnet core.
8
8
9
9
If you have any problems, make sure to file an issue here on Github.
10
10
11
+
# Crontab task executor #
12
+
13
+
## CronAttribute ##
14
+
This library support annotation method only. if you want create a crontab task, simply add the `CronAttribute` on some method.
15
+
16
+
We also provide some advanced features that you can get by adding some parameters to the method to get the information associated with the current task.
The `CrontabTaskExecutor` class contains a constructor that with one parameter, the parameter is `Func<MethodInfo, object> typeInstanceCreator`. `typeInstanceCreator` used to create an object instance where the task method is definded. this will be very useful!
52
+
53
+
In console application, you can initialize an instance of an object with the `new` keyword or reflection. and in web application, you can use `DI`(`dependency injection`) directly.
54
+
55
+
For better use this library in your Web application, see the [Yisoft.AspnetCore.Crontab](https://github.com/yisoft-aspnet/crontab) project.
0 commit comments