示例#1
0
 public bool KitchenUnsubscribe()
 {
     try
     {
         IKitchenStationCallback callback = OperationContext.Current.GetCallbackChannel <IKitchenStationCallback>();
         if (KitchenSubscribers.Contains(callback))
         {
             KitchenSubscribers.Remove(callback);
         }
         return(true);
     }
     catch
     {
         return(false);
     }
 }
示例#2
0
 public bool KitchenSubscribe()//KS subscription by Station
 {
     try
     {
         IKitchenStationCallback callback = OperationContext.Current.GetCallbackChannel <IKitchenStationCallback>();
         if (!KitchenSubscribers.Contains(callback))
         {
             KitchenSubscribers.Add(callback);
         }
         return(true);
     }
     catch
     {
         return(false);
     }
 }