Class Routee
Generic base class for routees.
Inherited Members
Namespace: Akka.Routing
Assembly: Akka.dll
Syntax
public class Routee
Fields
| Edit this page View SourceNoRoutee
Singleton instance for special case "no routee," for when no matching routees are found.
Declaration
public static readonly Routee NoRoutee
Field Value
Type | Description |
---|---|
Routee |
Methods
| Edit this page View SourceAsk(object, TimeSpan?)
Ask a routee for a reply message in response to an input.
Declaration
public virtual Task<object> Ask(object message, TimeSpan? timeout)
Parameters
Type | Name | Description |
---|---|---|
object | message | The message to send. |
TimeSpan? | timeout | Optional timeout parameter. If the parameter is provided and the operation times out, will throw an AskTimeoutException. |
Returns
Type | Description |
---|---|
Task<object> | A Task containing the response object. |
FromActorRef(IActorRef)
Helper method to create a new Routee instance from an IActorRef.
Declaration
public static Routee FromActorRef(IActorRef actorRef)
Parameters
Type | Name | Description |
---|---|---|
IActorRef | actorRef |
Returns
Type | Description |
---|---|
Routee |
Send(object, IActorRef)
Send a message to the routee.
Declaration
public virtual void Send(object message, IActorRef sender)
Parameters
Type | Name | Description |
---|---|---|
object | message | The message to send. |
IActorRef | sender | The sender, if any. |