Akka.Routing.RoutedActorRef.NewCell C# (CSharp) Method

NewCell() protected method

protected NewCell ( ) : ActorCell
return Akka.Actor.ActorCell
        protected override ActorCell NewCell()
        {
            var pool = _routerProps.RouterConfig as Pool;
            ActorCell cell = null;
            if(pool != null)
            {
                if(pool.Resizer != null)
                {
                    //if there is a resizer, use ResizablePoolCell
                    cell = new ResizablePoolCell(_system, this, _routerProps, _routerDispatcher, _routeeProps, _supervisor, pool);
                }
            }
            if(cell == null)
                cell = new RoutedActorCell(_system, this, _routerProps, _routerDispatcher, _routeeProps, _supervisor);
            cell.Init(sendSupervise: false, createMailbox: _createMailbox);
            return cell;
        }
    }