Пример #1
0
 public void InactivateSignage(Signage signage)
 {
     if (signage == null)
     {
         return;
     }
     Context.Items.Remove(Context.ConnectionId);
     signage.ConnectionId = string.Empty;
     _unitOfWork.Signages.UpdateSignage(signage);
 }
Пример #2
0
 private void AddSignageToConnectionContext(Signage currentSignage)
 {
     if (!Context.Items.ContainsKey(Context.ConnectionId))
     {
         Context.Items.Add(Context.ConnectionId, currentSignage);
     }
     else
     {
         Context.Items[Context.ConnectionId] = currentSignage;
     }
 }
Пример #3
0
 public void ActivateSignage(Signage currentSignage)
 {
     AddSignageToConnectionContext(currentSignage);
     currentSignage.ConnectionId = Context.ConnectionId;
     _unitOfWork.Signages.UpdateSignage(currentSignage);
 }