Esempio n. 1
0
        public void Unregister()
        {
            // Unsubscribe the user from the conversation.
            IDeltaNotifyCallback registeredUser = OperationContext.Current.GetCallbackChannel <IDeltaNotifyCallback>();

            if (registratedUIs.Contains(registeredUser))
            {
                registratedUIs.Remove(registeredUser);
            }
        }
Esempio n. 2
0
        public void Register()
        {
            // Subscribe the user to the conversation
            IDeltaNotifyCallback registeredUser = OperationContext.Current.GetCallbackChannel <IDeltaNotifyCallback>();

            if (!registratedUIs.Contains(registeredUser))
            {
                registratedUIs.Add(registeredUser);
            }
        }