using Microsoft.AspNetCore.SignalR; using System.Threading.Tasks; namespace OnlineSalesAutoCrop.CoreAPI.SignalRHub { /// /// /// public class NotificationHub : Hub { /// /// /// /// /// /// /// /// public async Task NotifySubscriber(int userId, int msgType, int itemId, string ipAddress) { try { await Clients.All.NotifySubscriber(userId: userId, msgType: msgType, itemId: itemId, ipAddress: ipAddress); } catch { //Nothing to do } } } }