π¦ WJb.Demo (WASM)
Lightweight demo application showcasing WJb background job engine running in a Blazor WebAssembly (WASM) environment.
π Overview
WJb.Demo (WASM) demonstrates how to:
- Execute background jobs in a client-side environment
- Track job lifecycle and progress in real time
- Use clean, decoupled job actions
- Chain and configure actions
- Handle success, failure, and cancellation scenarios
π§© Features
- β Job dashboard with live updates
- β
Multiple action types:
- Hello Action
- Configured Action
- Progress Action
- Chained Actions
- β Progress tracking (0β100%)
- β
Status handling:
- Completed
- Failed
- β Message output per job
- β Job cleanup support
π₯οΈ UI Overview
The demo UI includes:
-
Sidebar navigation
- Dashboard
- Action samples
-
Active Jobs table
- ID
- Status
- Progress bar
- Message
- Remove action
Example states:
- Completed jobs with full progress
- Failed jobs with partial progress
- Informational messages for each job
βοΈ How It Works
WJb separates concerns into:
- Execution β runs actions
- Storage β tracks job state
- Hosting β coordinates lifecycle
In this demo:
- Jobs are triggered from UI
- Execution happens in WASM runtime
- Progress updates are reflected immediately
βΆοΈ Run Locally
git clone https://github.com/UkrGuru/WJb.Demo
cd WJb.Demo
dotnet run
Then open:
https://localhost:7268
π§ͺ Example Scenarios
- Run simple job (Hello Action)
- Execute configured job (SMTP simulation)
- Track progress over time
- Trigger chained jobs
- Observe failure handling
π Notes
- This is a demo application intended for showcasing WJb capabilities.
- Behavior and APIs may evolve.
- Some features may be simplified for demonstration purposes.

Top comments (0)