public async Task NotifyAddedOrderItemEvent(NotifyChangedOrderItemModel message) { var currentConnection = _httpContextAccessor.HttpContext.Session.GetString("HubConnectionId"); //_logger.InsertLog(Core.Domain.Logging.LogLevel.Information, String.Format("Current client connection id = {0}", currentConnection)); await _cashierOrderHubContext.Clients.AllExcept(currentConnection).SendAsync("AddedOrderItemEvent", message); }
public async Task NotifyChangedOrderItemStateEvent(NotifyChangedOrderItemModel message) { var currentConnection = _httpContextAccessor.HttpContext.Session.GetString("HubConnectionId"); await _cashierOrderHubContext.Clients.AllExcept(currentConnection).SendAsync("ChangedOrderItemStateEvent", message); }