private void AddChild(IActorRef childRef)
        {
            DebugMessage(msg: "Try to add child: " + childRef.Path.Name);
            VirtualChildren.Add(item: childRef);

            OnChildAdd(childRef: childRef);
        }
Exemplo n.º 2
0
 /// <summary>
 /// After a child has been ordered from Guardian a ChildRef will be returned by the responsible child
 /// it has been allready added to this.VirtualChilds at this Point
 /// </summary>
 /// <param name="childRef"></param>
 protected override void OnChildAdd(IActorRef childRef)
 {
     VirtualChildren.Add(item: childRef);
     Send(instruction: Contract.Instruction.StartOrder.Create(message: _orderQueue.Dequeue()
                                                              , target: childRef
                                                              , logThis: true));
 }