Akka.Routing.RoutedActorCell.Start C# (CSharp) Method

Start() public method

public Start ( ) : void
return void
        public override void Start()
        {
            // create the initial routees before scheduling the Router actor
            _router = _routerConfig.CreateRouter(System);
            _routerConfig.Match()
                .With<Pool>(pool =>
                {
                    var nrOfRoutees = pool.GetNrOfInstances(System);
                    if (nrOfRoutees > 0)
                        AddRoutees(Vector.Fill<Routee>(nrOfRoutees)(() => pool.NewRoutee(_routeeProps, this)));
                })
                .With<Group>(group =>
                {
                    var paths = group.Paths;
                    if (paths.NonEmpty())
                        AddRoutees(paths.Select(p => group.RouteeFor(p, this)).ToList());
                });
            PreSuperStart();
            base.Start();
        }