private void Supervise(IActorRef child, bool async)
{
//TODO: complete this
if (!IsTerminating)
{
var childRestartStats = InitChild((IInternalActorRef)child);
if (childRestartStats != null)
{
HandleSupervise(child, async);
if (System.Settings.DebugLifecycle)
{
Publish(new Debug(Self.Path.ToString(), ActorType, "now supervising " + child.Path));
}
}
else
{
Publish(new Debug(Self.Path.ToString(), ActorType, "received Supervise from unregistered child " + child.Path + ", this will not end well"));
}
}
}