Akka.Actor.ActorCell.GetChildren C# (CSharp) Method

GetChildren() public method

public GetChildren ( ) : IEnumerable
return IEnumerable
        public IEnumerable<IInternalActorRef> GetChildren()
        {
            return ChildrenContainer.Children;
        }

Usage Example

示例#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();
         }
     }
 }
All Usage Examples Of Akka.Actor.ActorCell::GetChildren