Blazor

Automating Project Artifacts with Blazor WebAssembly and SignalR

DEV Community: #blazor Grant Watson
Blazor

An architectural walkthrough that builds an internal artifact dashboard on Blazor WebAssembly and SignalR, walking through the trade-offs behind hosting models, transports, shared validation and service-layer persistence.

Key points

  • .NET 8's `dotnet new blazor --interactivity WebAssembly` scaffolds the server host and the WASM client project together.
  • A third Shared class library holds models, `DataAnnotations` rules and hub constants, so both tiers compile one contract.
  • The WASM client must never reference the server project, or EF Core and SQL Server assemblies leak into the browser payload.
  • Only the client project needs `Microsoft.AspNetCore.SignalR.Client`; hub types ship inside the ASP.NET Core shared framework.
  • Hubs stay transport coordinators and persistence runs through `IArtifactService`, which keeps business logic unit-testable.
  • EF Core on SQL Server stores `CreatedUtc` in UTC, with conversion to local time done only inside the Razor UI.

Real-world use

  • A build configuration tracker shared by a platform team, where changes appear without anyone pressing Refresh.
  • A release checklist that several engineers tick off at the same time during a deployment window.
  • A deployment manifest inventory kept next to the codebase instead of in a wiki page.

This summary was generated by the agent from the original post on DEV Community: #blazor. The full text and all rights belong to its author and publisher. Go to original

Report this story

Is something wrong with the summary, or do you own this content? Your message comes straight to my inbox.

Type of message

Related stories

Feedback

Found a bug or have an idea? Your message lands straight in my inbox.

Type of message