using Autofac; using HybirdFrameworkCore.Autofac; using Microsoft.AspNetCore.SignalR; namespace Service.RealTime; public class HubHolder { public static IHubContext HubContext { get; set; } = AppInfo.Container.Resolve>(); public static async Task S2CMsg(string msg) { await HubContext.Clients.All.SendAsync("s2cMsg", msg); } }