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

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

            subscribers.Remove(callback);
        }