Lyo.Job.SignalR 1.0.2

dotnet add package Lyo.Job.SignalR --version 1.0.2
                    
NuGet\Install-Package Lyo.Job.SignalR -Version 1.0.2
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Lyo.Job.SignalR" Version="1.0.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Lyo.Job.SignalR" Version="1.0.2" />
                    
Directory.Packages.props
<PackageReference Include="Lyo.Job.SignalR" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Lyo.Job.SignalR --version 1.0.2
                    
#r "nuget: Lyo.Job.SignalR, 1.0.2"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Lyo.Job.SignalR@1.0.2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Lyo.Job.SignalR&version=1.0.2
                    
Install as a Cake Addin
#tool nuget:?package=Lyo.Job.SignalR&version=1.0.2
                    
Install as a Cake Tool

Lyo.Job.SignalR

SignalR live job dashboard for the Lyo job stack. JobEventBroadcaster subscribes to lifecycle and alert routing keys on the job.events exchange and pushes JobHubEvent records to all connected JobHub clients — enabling Blazor or JavaScript dashboards to refresh without polling.

Examples

Register services

services.AddJobSignalR();

var app = builder.Build();
app.MapJobHub(); // default path: /hubs/job
app.MapJobHub("/jobs/live"); // custom path

Client usage

const connection = new signalR.HubConnectionBuilder()
    .withUrl("/hubs/job")
    .build();

connection.on("JobEvent", (evt) => {
    // evt.eventType: run.created | run.started | run.finished | run.cancelled | alert | definition.updated
    // evt.runId, evt.definitionId, evt.timestampUtc, evt.message
});

await connection.start();

Registration

Requires IMqService (same broker as AddMqJobEventPublisher). Register before MapJobHub.

Client usage

Connect to the hub and listen for JobEvent: JobHub.Ping() returns "pong" for connectivity checks.

Broadcast events

JobEventBroadcaster binds per-routing-key queues under job.signalr.dashboard.*:

Routing key JobHubEvent.EventType Payload
job.notifications.run.created run.created Run id (Guid)
job.notifications.run.started run.started Run id
job.notifications.run.finished run.finished Run id
job.notifications.run.cancelled run.cancelled Run id
job.notifications.alert alert Alert JSON body
job.notifications.definition.updated definition.updated Definition id

JobHubEvent.WorkerType is reserved for future filtering; the broadcaster currently passes null. Alert events carry the raw JSON alert body in Message when the routing-key payload is not a run Guid.

Architecture

flowchart TB
    subgraph producers [Alert / lifecycle publishers]
        JS[JobService]
        SCH[JobScheduler]
        MAINT[JobMaintenanceService]
    end
    producers --> EX[job.events exchange]
    EX --> BC[JobEventBroadcaster]
    BC --> HUB[JobHub Clients.All]
    HUB --> UI[Blazor / JS dashboard]
    UI --> API[Job API CRUD for detail]

Pair with Lyo.Job.Web.Components for the CRUD shell; use SignalR to invalidate or patch grids when events arrive.

Configuration

This package has no dedicated options type — it uses the host's SignalR and MQ configuration. Ensure CORS and WebSocket policies allow dashboard clients to reach the mapped hub path.

Metrics

The broadcaster does not emit dedicated metrics. Monitor underlying job metrics (job.service.*, job.scheduler.*, job.sla.breach) and MQ health via IMqService / IHealth.

Dependencies

Generated from ProjectReference / PackageReference (same model as docs/Lyo.ProjectGraph.html).

  • Lyo.Job.Models — (direct, lyo)
  • Lyo.MessageQueue — (direct, lyo)
  • Microsoft.Extensions.Hosting.Abstractions 10.0.5 — (direct, microsoft)
  • Microsoft.Extensions.Options.ConfigurationExtensions 10.0.5 — (direct, microsoft)
  • Lyo.Api.Models — (transitive, lyo)
  • Lyo.Common — (transitive, lyo)
  • Lyo.DateAndTime — (transitive, lyo)
  • Lyo.Exceptions — (transitive, lyo)
  • Lyo.Health — (transitive, lyo)
  • Lyo.Metrics — (transitive, lyo)
  • Lyo.Query.Models — (transitive, lyo)
  • Lyo.Result — (transitive, lyo)
  • Lyo.Schedule.Models — (transitive, lyo)
  • Microsoft.Extensions.DependencyInjection.Abstractions 10.0.5 — (transitive, microsoft)
  • Microsoft.Extensions.Logging.Abstractions 10.0.5 — (transitive, microsoft)
  • System.Diagnostics.DiagnosticSource 10.0.5 — (transitive, microsoft, netstandard2.0)
  • System.Memory 4.6.3 — (transitive, microsoft, netstandard2.0)
  • System.Text.Json 10.0.5 — (transitive, microsoft, netstandard2.0)
Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.2 0 8/19/2026
1.0.1 43 8/18/2026
1.0.0 74 8/16/2026