Akka.Routing.Router.WithRoutees C# (CSharp) Method

WithRoutees() public method

Create a new instance with the specified routees and the same RoutingLogic.
public WithRoutees ( ) : Router
return Router
        public Router WithRoutees(params Routee[] routees)
        {
            return new Router(_logic, routees);
        }

Usage Example

示例#1
0
 internal void AddRoutees(IList <Routee> routees)
 {
     foreach (var routee in routees)
     {
         Watch(routee);
     }
     _router = _router.WithRoutees(_router.Routees.Concat(routees).ToArray());
 }
All Usage Examples Of Akka.Routing.Router::WithRoutees