This repository was archived by the owner on May 12, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33 <PropertyGroup >
44 <TargetFramework >netstandard2.0</TargetFramework >
5- <Version >1.0.1 </Version >
5+ <Version >1.0.2 </Version >
66 <PackageLicenseExpression ></PackageLicenseExpression >
77 <Copyright >2020</Copyright >
88 <PackageProjectUrl >https://github.com/jmarbutt/HangFire.TopicExtensions</PackageProjectUrl >
Original file line number Diff line number Diff line change 1- namespace HangFire . TopicExtensions . Interfaces
1+ using System . Threading . Tasks ;
2+
3+ namespace HangFire . TopicExtensions . Interfaces
24{
35 public interface ISubscriber
46 {
5- void Execute ( object context ) ;
7+ Task Execute ( object context ) ;
68 }
79}
Original file line number Diff line number Diff line change 1- using Hangfire . Server ;
1+ using System . Threading . Tasks ;
2+ using Hangfire . Server ;
23using HangFire . TopicExtensions . Attributes ;
34using HangFire . TopicExtensions . Interfaces ;
45using Microsoft . Extensions . Configuration ;
@@ -14,7 +15,7 @@ public SampleSubscriber(IConfiguration config)
1415 {
1516 _config = config ;
1617 }
17- public void Execute ( object context )
18+ public async Task Execute ( object context )
1819 {
1920
2021 }
Original file line number Diff line number Diff line change 1- using HangFire . TopicExtensions . Attributes ;
1+ using System . Threading . Tasks ;
2+ using HangFire . TopicExtensions . Attributes ;
23using HangFire . TopicExtensions . Interfaces ;
34
45namespace HangFirePubSub . Sample
56{
67 [ SubscriberJob ( "topic1" ) ]
78 public class SampleSubscriber2 : ISubscriber
89 {
9- public void Execute ( object context )
10+ public async Task Execute ( object context )
1011 {
1112
1213 }
Original file line number Diff line number Diff line change 1- using HangFire . TopicExtensions . Attributes ;
1+ using System . Threading . Tasks ;
2+ using HangFire . TopicExtensions . Attributes ;
23using HangFire . TopicExtensions . Interfaces ;
34
45namespace HangFirePubSub . Sample
56{
67 [ SubscriberJob ( "topic2" ) ]
78 public class SampleSubscriber3 : ISubscriber
89 {
9- public void Execute ( object context )
10+ public async Task Execute ( object context )
1011 {
1112
1213 }
You can’t perform that action at this time.
0 commit comments