public void Unregister() { // Unsubscribe the user from the conversation. IDeltaNotifyCallback registeredUser = OperationContext.Current.GetCallbackChannel <IDeltaNotifyCallback>(); if (registratedUIs.Contains(registeredUser)) { registratedUIs.Remove(registeredUser); } }
public void Register() { // Subscribe the user to the conversation IDeltaNotifyCallback registeredUser = OperationContext.Current.GetCallbackChannel <IDeltaNotifyCallback>(); if (!registratedUIs.Contains(registeredUser)) { registratedUIs.Add(registeredUser); } }