commit
c9d382722a
4 changed files with 132 additions and 127 deletions
@ -1,13 +1,17 @@ |
|||||||
|
using System.Threading; |
||||||
|
|
||||||
namespace DotXxlJob.Core.Model |
namespace DotXxlJob.Core.Model |
||||||
{ |
{ |
||||||
public class JobExecuteContext |
public class JobExecuteContext |
||||||
{ |
{ |
||||||
public JobExecuteContext(IJobLogger jobLogger,string jobParameter) |
public JobExecuteContext(IJobLogger jobLogger, string jobParameter, CancellationToken cancellationToken) |
||||||
{ |
{ |
||||||
this.JobLogger = jobLogger; |
this.JobLogger = jobLogger; |
||||||
this.JobParameter = jobParameter; |
this.JobParameter = jobParameter; |
||||||
|
this.cancellationToken = cancellationToken; |
||||||
} |
} |
||||||
public string JobParameter { get; } |
public string JobParameter { get; } |
||||||
public IJobLogger JobLogger { get; } |
public IJobLogger JobLogger { get; } |
||||||
|
public CancellationToken cancellationToken { get; } |
||||||
} |
} |
||||||
} |
} |
||||||
Loading…
Reference in new issue