INTERNAL API
Наследование: RoutedActorCell
Пример #1
0
 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;
 }
Пример #2
0
 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;
 }
Пример #3
0
        /// <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);
        }
Пример #4
0
        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);
        }