generated from NetCoreTemplates/blazor-vue
-
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.
Use new SyncCommand helpers + remove old TimeHostedService
- Loading branch information
Showing
4 changed files
with
22 additions
and
78 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
using Microsoft.Extensions.Logging; | ||
using ServiceStack; | ||
|
||
namespace MyApp.ServiceInterface.Recurring; | ||
|
||
public class LogCommand(ILogger<LogCommand> log) : SyncCommand | ||
{ | ||
private static long count = 0; | ||
protected override void Run() | ||
{ | ||
Interlocked.Increment(ref count); | ||
log.LogInformation("Log {Count}: Hello from Recurring Command", count); | ||
} | ||
} |
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