public void Subscribe() { IOrdersChanged callback = OperationContext.Current.GetCallbackChannel <IOrdersChanged>(); if (!subscribers.Contains(callback)) { subscribers.Add(callback); } }
public void Unsubscribe() { IOrdersChanged callback = OperationContext.Current.GetCallbackChannel <IOrdersChanged>(); subscribers.Remove(callback); }