PBL 1-15 审核修改

This commit is contained in:
2025-01-16 10:13:50 +08:00
parent ebfc811f99
commit 295f8c08ad
11 changed files with 417 additions and 74 deletions

View File

@@ -0,0 +1,32 @@
using Microsoft.AspNetCore.SignalR;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DOAN.ServiceCore.Signalr
{
public class PBLhub : Hub
{
/// <summary>
/// 接受消息
/// </summary>
/// <param name="message"></param>
/// <returns></returns>
public async Task SendNotification(string message)
{
// 向所有客户端发送通知
await Clients.All.SendAsync("BOMExcept", message);
}
public async Task PBL_bom_except(string message)
{
Console.WriteLine(message);
}
}
}