예제 #1
0
 /// <summary>
 /// Initiates the process of stopping this <code>Actor</code> and all of its children.
 /// </summary>
 public virtual void Stop()
 {
     if (!IsStopped)
     {
         if (LifeCycle.Address.Id != World.DeadLettersId)
         {
             // TODO: remove this actor as a child on parent
             LifeCycle.SuspendForStop();
             LifeCycle.Stop(this);
         }
     }
 }