Class EchoActor
An EchoActor is an actor that echoes whatever is sent to it, to the TestKit's TestActor. By default it also echoes back to the sender, unless the sender is the TestActor (in this case the TestActor will only receive one message).
Inherited Members
Namespace: Akka.TestKit.TestActors
Assembly: Akka.TestKit.dll
Syntax
public class EchoActor : ReceiveActor, IInternalActor, IInitializableActor
Constructors
| Improve this Doc View SourceEchoActor(TestKitBase, Boolean)
TBD
Declaration
public EchoActor(TestKitBase testkit, bool echoBackToSenderAsWell = true)
Parameters
Type | Name | Description |
---|---|---|
TestKitBase | testkit | TBD |
Boolean | echoBackToSenderAsWell | TBD |
Methods
| Improve this Doc View SourceProps(TestKitBase, Boolean)
Returns a Props(TestKitBase, Boolean) object that can be used to create an EchoActor.
The EchoActor echoes whatever is sent to it, to the
TestKit's TestActor.
By default it also echoes back to the sender, unless the sender is the TestActor
(in this case the TestActor will only receive one message) or unless
echoBackToSenderAsWell
has been set to false
.
Declaration
public static Props Props(TestKitBase testkit, bool echoBackToSenderAsWell = true)
Parameters
Type | Name | Description |
---|---|---|
TestKitBase | testkit | TBD |
Boolean | echoBackToSenderAsWell | TBD |
Returns
Type | Description |
---|---|
Props | TBD |