Exemplo n.º 1
0
 public void ExpireSubscriber(Subscriber subscriber)
 {
     if (subscribers.ContainsKey(subscriber.Name))
     {
         subscribers.Remove(subscriber.Name);
         if (!subscriber.LongLived)
         {
             amazonSqsFacade.DeleteQueue(subscriber.QueueUrl);
         }
     }
 }
        public void ExpireSubscriber(Subscriber subscriber)
        {
            subscriber.Requires("subscriber").IsNotNull();

            if (!subscribers.ContainsKey(subscriber.Name))
            {
                return;
            }

            subscribers.Remove(subscriber.Name);
            if (!subscriber.LongLived)
            {
                amazonSqsFacade.DeleteQueue(subscriber.QueueUrl);
            }
        }