Initial commit: JDE Scoping Tool migration project

Set up repository with legacy .NET Framework 4.8 source (OLD/),
new .NET 10 Blazor solution (NEW/), OpenSpec specifications,
documentation, and project configuration.
This commit is contained in:
Joseph Doherty
2026-01-02 07:43:29 -05:00
commit 26ff8d9b4f
1761 changed files with 596509 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
using System;
using DataModel.Models;
using Microsoft.AspNet.SignalR;
namespace WebInterface.Hubs
{
public class StatusHub : Hub
{
public static readonly Lazy<IHubContext> ContextInstance = new Lazy<IHubContext>(() => GlobalHost.ConnectionManager.GetHubContext<StatusHub>());
private static StatusUpdate cachedUpdate = new StatusUpdate() {Message="Unknown", Timestamp = DateTime.Now};
public void SetStatus(StatusUpdate statusUpdate)
{
cachedUpdate = statusUpdate;
Clients.All.statusUpdate(statusUpdate);
}
public StatusUpdate GetCachedStatus()
{
return cachedUpdate;
}
public void PublishSearchUpdate(SearchUpdate searchUpdate)
{
Clients.All.searchUpdate(searchUpdate);
}
}
}