Select() public abstract method

Picks a Routee to receive the message. Normally it picks one of the passed routees, but it is up to the implementation to return whatever Routee to use for sending a specific message.
public abstract Select ( object message, Routee routees ) : Routee
message object The message that is being routed
routees Routee A collection of routees to choose from when receiving the .
return Routee
コード例 #1
0
ファイル: Router.cs プロジェクト: supadmins/akka.net
 public void Route(object message, IActorRef sender)
 {
     if (message is Broadcast)
     {
         new SeveralRoutees(_routees).Send(UnWrap(message), sender);
     }
     else
     {
         Send(_logic.Select(message, _routees), message, sender);
     }
 }