KlusterKite  0.0.0
A framework to create scalable and redundant services based on awesome Akka.Net project.
KlusterKite.Core.MessageRouter Class Reference

Base class to route messages. More...

Inheritance diagram for KlusterKite.Core.MessageRouter:
KlusterKite.Core.IMessageRouter

Public Member Functions

 MessageRouter (ActorSystem actorSystem)
 Initializes a new instance of the MessageRouter class. More...
 
async Task< T > Ask< T > (Address nodeAddress, string path, object message, TimeSpan timeout)
 Sends message to the specified actor path on the specified node. See also Futures.Ask(Akka.Actor.ICanTell,object,System.Nullable<System.TimeSpan>) More...
 
void Tell (Address nodeAddress, string path, object message, IActorRef sender=null)
 Sends message to the specified actor path on the specified node More...
 

Detailed Description

Base class to route messages.

Definition at line 23 of file MessageRouter.cs.

Constructor & Destructor Documentation

◆ MessageRouter()

KlusterKite.Core.MessageRouter.MessageRouter ( ActorSystem  actorSystem)

Initializes a new instance of the MessageRouter class.

Parameters
actorSystemThe actor system.

Definition at line 36 of file MessageRouter.cs.

Member Function Documentation

◆ Ask< T >()

async Task<T> KlusterKite.Core.MessageRouter.Ask< T > ( Address  nodeAddress,
string  path,
object  message,
TimeSpan  timeout 
)

Sends message to the specified actor path on the specified node. See also Futures.Ask(Akka.Actor.ICanTell,object,System.Nullable<System.TimeSpan>)

Template Parameters
TThe type of awaited response
Parameters
nodeAddressThe node address.
pathThe recipient path.
messageThe message.
timeoutThe maximum time to wait for response
Returns
The response

Implements KlusterKite.Core.IMessageRouter.

Definition at line 50 of file MessageRouter.cs.

◆ Tell()

void KlusterKite.Core.MessageRouter.Tell ( Address  nodeAddress,
string  path,
object  message,
IActorRef  sender = null 
)

Sends message to the specified actor path on the specified node

Parameters
nodeAddressThe node address.
pathThe recipient path.
messageThe message.
senderThe sender.

Implements KlusterKite.Core.IMessageRouter.

Definition at line 70 of file MessageRouter.cs.


The documentation for this class was generated from the following file: