using EnotaryoPH.Web.Common.Hubs; using Microsoft.AspNetCore.SignalR; namespace EnotaryoPH.Web.Common.Services { public class NotificationService { private readonly IHubContext _hubContext; public NotificationService(IHubContext hubContext) => _hubContext = hubContext; public async Task NotifyUserAsync(string user_UID, string message) => await _hubContext.Clients.All.SendAsync("ReceiveUserNotification", user_UID, message); } }