-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
40 additions
and
116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,32 @@ | ||
using System; | ||
using System.Threading.Tasks; | ||
|
||
namespace Backgrounder.Sample.Library | ||
namespace Backgrounder.Sample.Library; | ||
|
||
public class LibraryJobs | ||
{ | ||
public class LibraryJobs | ||
[BackgroundOperation] | ||
public Task LibraryWork(int? jobId) | ||
{ | ||
[BackgroundOperation] | ||
public Task DoWork(int? jobId) | ||
{ | ||
return Task.FromResult(jobId); | ||
} | ||
|
||
[BackgroundOperation] | ||
public Task CompleteWork(int jobId) | ||
{ | ||
return Task.FromResult(jobId); | ||
} | ||
|
||
[BackgroundOperation] | ||
public static Task StaticWork(int jobId) | ||
{ | ||
return Task.FromResult(jobId); | ||
} | ||
|
||
return Task.FromResult(jobId); | ||
} | ||
|
||
[BackgroundOperation(ExtensionName = "RunScheduler")] | ||
public Task RunSchedule() | ||
{ | ||
return Task.CompletedTask; | ||
} | ||
[BackgroundOperation] | ||
public Task LibraryCompleteWork(int jobId) | ||
{ | ||
return Task.FromResult(jobId); | ||
} | ||
|
||
[BackgroundOperation] | ||
public static Task LibraryStaticWork(int jobId) | ||
{ | ||
return Task.FromResult(jobId); | ||
} | ||
} | ||
|
||
|
||
namespace System.Runtime.CompilerServices | ||
{ | ||
[BackgroundOperation(ExtensionName = "LibraryScheduler")] | ||
public Task RunSchedule() | ||
{ | ||
return Task.CompletedTask; | ||
} | ||
} |
31 changes: 0 additions & 31 deletions
31
samples/Backgrounder.Sample.Library/ModuleInitializerAttribute.cs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters