🚀 BlazorWJb: Integrating Worker Jobs with Blazor Server App
Source: Dev.to
Overview
This article demonstrates how to integrate UkrGuru/WJb (Worker Jobs) with a Blazor Server application. The sample provides a simple UI for managing actions and viewing logs in real time.
UkrGuru.WJb is a lightweight job‑scheduling and processing library for .NET. It allows you to:
- Schedule jobs using CRON expressions
- Execute custom actions asynchronously
- Log execution details for monitoring and debugging
Logs Page
Displays job execution logs with:
- Date filter
- Level and Category dropdowns
- Text search
- Refresh button
Actions Page
Manage actions easily:
- Add, edit, and delete actions
- Save actions to
wjb\actions.json - Edit JSON parameters for each action
Additional details:
- Logs are displayed from
Log\yyyyMMdd.logfiles JobSchedulerruns background jobs based on CRON expressionsJobProcessorexecutes actions defined in the Actions page- Logs are automatically updated after each job execution
Getting Started
# Clone the sample repository
git clone https://github.com/UkrGuru/WJb.Samples.git
cd src/BlazorWJb
# Install dependencies
dotnet restore
# Run the app
dotnet run
Extending the Sample
- Add custom job types by implementing
IJobAction - Integrate with UkrGuru.Sql for database‑driven actions
- Deploy as a background service for production workloads
Sample Repository
- Source code:
- Main project:
Why Blazor + WJb?
Combining Blazor’s real‑time UI with WJb’s job scheduling gives you a powerful dashboard for automation and monitoring.