예제 #1
0
        public void Subscribe()
        {
            IOrdersChanged callback = OperationContext.Current.GetCallbackChannel <IOrdersChanged>();

            if (!subscribers.Contains(callback))
            {
                subscribers.Add(callback);
            }
        }
예제 #2
0
        public void Unsubscribe()
        {
            IOrdersChanged callback = OperationContext.Current.GetCallbackChannel <IOrdersChanged>();

            subscribers.Remove(callback);
        }