TGViewer
//devdigest //devdigest @devdigest · 376 subscribers
Post #2737 73
⚡️ Background tasks in ASP.NET Core with NCronJob and SignalR

Damien Bowden shows how to implement a background task scheduler in ASP.NET Core using the open-source NCronJob package together with SignalR to push execution status to clients in real time. Jobs implement the `IJob` interface with a `RunAsync` method that runs on a schedule and supports dependency injection — access to logging and SignalR hubs. In the example, two job types dispatch begin and end messages every five seconds, demonstrating concurrent and non-concurrent execution (the `[SupportsConcurrency(5)]` attribute), while the frontend displays these messages in real time via the SignalR JavaScript client. According to the author, the approach covers most typical scheduling scenarios while staying simple and maintainable.

♻️ Subscribe for free now!
Software Engineering ASP.NET Core background tasks with NCronJob and SignalR I was recommended NCronJob for implementing a background worker in ASP.NET Core and so I decided to give it a try, read the docs and learn this. This NuGet package is open source and works great. I…
More from @devdigest
  1. Sep 25, 2026⚡️ Microsoft's live series builds a production AI agent in C# from scratch A four-part liv…
  2. Sep 23, 2026⚡️ Rider and ReSharper 2026.2.2 add an AI Agent Setup widget and sharper coding-agent hook…
  3. Sep 22, 2026⚡️ Environment.ProcessorCount reports process limits, not host cores, since .NET 6 Andrew…
  4. Sep 22, 2026⚡️ Workflow1111 rebuilds the AUTOMATIC1111 feature set on a single gr.Workflow canvas Elev…
  5. Sep 21, 2026⚡️ Azure Application Gateway adds HTTP/3 over QUIC in public preview Application Gateway n…
  6. Sep 21, 2026⚡️ F# beats C# on most axes except tooling, argues Mark Seemann Seemann's core argument: F…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →