定时任务

booking_auth_dev
wet 2 years ago
parent 9feef13592
commit 5fb5b518fb

@ -261,7 +261,7 @@ public class LogJobWorker : ISpareTimeWorker, IDynamicApiController, ITransient
/// </summary> /// </summary>
[SpareTime(120000, "TemporaryDocuments", Description = "后台批量删除临时文件,配置项参数:{\"quantity\": 2}不填默认为2", [SpareTime(120000, "TemporaryDocuments", Description = "后台批量删除临时文件,配置项参数:{\"quantity\": 2}不填默认为2",
DoOnce = false, StartNow = true, ExecuteType = SpareTimeExecuteTypes.Serial)] DoOnce = false, StartNow = true, ExecuteType = SpareTimeExecuteTypes.Serial)]
public void TemporaryDocuments() public void TemporaryDocuments(SpareTimer timer, long count)
{ {
var opt = App.GetOptions<TempFileOptions>(); var opt = App.GetOptions<TempFileOptions>();
var dirAbs = opt.Path; var dirAbs = opt.Path;

@ -5231,7 +5231,7 @@
<param name="expression"></param> <param name="expression"></param>
<typeparam name="T"></typeparam> <typeparam name="T"></typeparam>
</member> </member>
<member name="M:Myshipping.Core.Job.LogJobWorker.TemporaryDocuments"> <member name="M:Myshipping.Core.Job.LogJobWorker.TemporaryDocuments(Furion.TaskScheduler.SpareTimer,System.Int64)">
<summary> <summary>
后台批量删除临时文件 后台批量删除临时文件
</summary> </summary>

Loading…
Cancel
Save