public Select ( object message, |
||
message | object | The message that is being routed. |
routees | A collection of routees to randomly choose from when receiving the |
|
return |
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];
}
}