File tree Expand file tree Collapse file tree 3 files changed +16
-8
lines changed Expand file tree Collapse file tree 3 files changed +16
-8
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ internal class DemoJobHandler : ITaskHandler
13
13
{
14
14
public Task RunAsync ( TaskContext context )
15
15
{
16
- Console . WriteLine ( $ "执行参数:{ context . JobInfo . JobParams } ") ;
16
+ Console . WriteLine ( $ "执行参数:{ context . TaskInfo . JobParams } ") ;
17
17
Console . WriteLine ( "DemoJob" ) ;
18
18
Thread . Sleep ( 2000 ) ;
19
19
return Task . CompletedTask ;
Original file line number Diff line number Diff line change @@ -10,19 +10,19 @@ namespace OpenTask.Core.Models
10
10
{
11
11
public class TaskContext
12
12
{
13
- public TaskContext ( TodoTask job )
13
+ public TaskContext ( TodoTask task )
14
14
{
15
- JobInfo = job ;
15
+ TaskInfo = task ;
16
16
}
17
17
18
- /// <summary>
19
- /// 取消任务的令牌
20
- /// </summary>
21
- public CancellationToken CancellationToken { get ; internal set ; } = CancellationToken . None ;
18
+ ///// <summary>
19
+ ///// 取消任务的令牌
20
+ ///// </summary>
21
+ // public CancellationToken CancellationToken { get; internal set; } = CancellationToken.None;
22
22
23
23
/// <summary>
24
24
/// 任务信息
25
25
/// </summary>
26
- public TodoTask JobInfo { get ; }
26
+ public TodoTask TaskInfo { get ; }
27
27
}
28
28
}
Original file line number Diff line number Diff line change 8
8
<Nullable >enable</Nullable >
9
9
<PackageProjectUrl >https://github.com/SpringHgui/OpenTask</PackageProjectUrl >
10
10
<RepositoryUrl >https://github.com/SpringHgui/OpenTask</RepositoryUrl >
11
+ <PackageReadmeFile >README.md</PackageReadmeFile >
11
12
</PropertyGroup >
13
+
14
+ <ItemGroup >
15
+ <None Include =" ..\..\README.md" >
16
+ <Pack >True</Pack >
17
+ <PackagePath >\</PackagePath >
18
+ </None >
19
+ </ItemGroup >
12
20
<ItemGroup >
13
21
<PackageReference Include =" Microsoft.Extensions.Hosting.Abstractions" Version =" 6.0.0" />
14
22
<PackageReference Include =" Microsoft.Extensions.Logging" Version =" 6.0.0" />
You can’t perform that action at this time.
0 commit comments