public bool KitchenUnsubscribe() { try { IKitchenStationCallback callback = OperationContext.Current.GetCallbackChannel <IKitchenStationCallback>(); if (KitchenSubscribers.Contains(callback)) { KitchenSubscribers.Remove(callback); } return(true); } catch { return(false); } }
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); } }