feat: implement SignalR notifications for project status changes
This commit is contained in:
13
ServiceHost/Hubs/ProgramManager/ProjectBoardHub.cs
Normal file
13
ServiceHost/Hubs/ProgramManager/ProjectBoardHub.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using Microsoft.AspNetCore.SignalR;
|
||||
|
||||
namespace ServiceHost.Hubs.ProgramManager;
|
||||
|
||||
public class ProjectBoardHub:Hub
|
||||
{
|
||||
public override async Task OnConnectedAsync()
|
||||
{
|
||||
Console.WriteLine($"{Context.ConnectionId} connected");
|
||||
await Clients.All.SendAsync("ReceiveGreeting","A new user has connected to the Project Board Hub!");
|
||||
await base.OnConnectedAsync();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user