示例#1
0
 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);
 }
示例#2
0
 public async Task NotifyChangedOrderItemStateEvent(NotifyChangedOrderItemModel message)
 {
     var currentConnection = _httpContextAccessor.HttpContext.Session.GetString("HubConnectionId");
     await _cashierOrderHubContext.Clients.AllExcept(currentConnection).SendAsync("ChangedOrderItemStateEvent", message);
 }