GetChildren() public method

public GetChildren ( ) : IEnumerable
return IEnumerable
Exemplo n.º 1
0
 protected override void ProcessFailure(ActorCell actorCell, bool restart, ActorRef child, Exception cause)
 {
     if (restart)
     {
         foreach (var c in actorCell.GetChildren().ToArray())
         {
             RestartChild(child, cause, false);
         }
     }
     else
     {
         foreach (var c in actorCell.GetChildren().ToArray())
         {
             child.AsInstanceOf <InternalActorRef>().Stop();
         }
     }
 }
Exemplo n.º 2
0
 protected override void ProcessFailure(ActorCell actorCell, bool restart, ActorRef child, Exception cause)
 {
     if (restart)
     {
         foreach (var c in actorCell.GetChildren().ToArray())
         {
             RestartChild(child, cause, false);
         }
     }
     else
     {
         foreach (var c in actorCell.GetChildren().ToArray())
         {
             child.AsInstanceOf<InternalActorRef>().Stop();
         }
     }
 }