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; }
protected override ActorCell NewCell() { var pool = Props.RouterConfig as Pool; ActorCell cell = null; if (pool != null) { if (pool.Resizer != null) { cell = new ResizablePoolCell(System, this, Props, Dispatcher, _routeeProps, Supervisor, pool); } } if (cell == null) { cell = new RoutedActorCell(System, this, Props, Dispatcher, _routeeProps, Supervisor); } cell.Init(false, MailboxType); return cell; }
/// <summary> /// TBD /// </summary> /// <returns>TBD</returns> protected override ActorCell NewCell() { var pool = Props.RouterConfig as Pool; ActorCell cell = null; if (pool != null) { if (pool.Resizer != null) { cell = new ResizablePoolCell(System, this, Props, Dispatcher, _routeeProps, Supervisor, pool); } } if (cell == null) { cell = new RoutedActorCell(System, this, Props, Dispatcher, _routeeProps, Supervisor); } cell.Init(false, MailboxType); return(cell); }
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); }