public bool UnSubscribeFromRangeChangeEvents(IAsyncRingRangeListener observer)
 {
     lock (grainStatusListeners)
     {
         return grainStatusListeners.Contains(observer) && grainStatusListeners.Remove(observer);
     }
 }
Exemplo n.º 2
0
 public bool UnSubscribeFromRangeChangeEvents(IAsyncRingRangeListener observer)
 {
     lock (grainStatusListeners)
     {
         return(grainStatusListeners.Contains(observer) && grainStatusListeners.Remove(observer));
     }
 }
        public bool SubscribeToRangeChangeEvents(IAsyncRingRangeListener observer)
        {
            lock (grainStatusListeners)
            {
                if (grainStatusListeners.Contains(observer)) return false;

                grainStatusListeners.Add(observer);
                return true;
            }
        }
        public bool SubscribeToRangeChangeEvents(IAsyncRingRangeListener observer)
        {
            lock (grainStatusListeners)
            {
                if (grainStatusListeners.Contains(observer)) return false;

                grainStatusListeners.Add(observer);
                return true;
            }
        }