Beispiel #1
0
 public bool RemoveActivation(ActivationId act, UnregistrationCause cause, TimeSpan lazyDeregistrationDelay, out IActivationInfo info, out bool wasRemoved)
 {
     wasRemoved = false;
     if (Instances.TryGetValue(act, out info) && info.OkToRemove(cause, lazyDeregistrationDelay))
     {
         Instances.Remove(act);
         wasRemoved = true;
         VersionTag = rand.Next();
     }
     return(Instances.Count == 0);
 }
 public bool RemoveActivation(ActivationId act, UnregistrationCause cause, GlobalConfiguration config, out IActivationInfo info, out bool wasRemoved)
 {
     info       = null;
     wasRemoved = false;
     if (Instances.TryGetValue(act, out info) && info.OkToRemove(cause, config))
     {
         Instances.Remove(act);
         wasRemoved = true;
         VersionTag = rand.Next();
     }
     return(Instances.Count == 0);
 }
 public bool RemoveActivation(ActivationId act, UnregistrationCause cause, out IActivationInfo info, out bool wasRemoved)
 {
     info = null;
     wasRemoved = false;
     if (Instances.TryGetValue(act, out info) && info.OkToRemove(cause))
     {
         Instances.Remove(act);
         wasRemoved = true;
         VersionTag = rand.Next();
     }
     return Instances.Count == 0;
 }