Akka.Routing.RandomLogic.Select C# (CSharp) Метод

Select() публичный Метод

Picks a random Routee to receive the message.
public Select ( object message, Routee routees ) : Routee
message object The message that is being routed.
routees Routee A collection of routees to randomly choose from when receiving the .
Результат Routee
        public override Routee Select(object message, Routee[] routees)
        {
            if (routees == null || routees.Length == 0)
            {
                return Routee.NoRoutee;
            }
            return routees[ThreadLocalRandom.Current.Next(routees.Length - 1)%routees.Length];
        }
    }
RandomLogic