| TestKitBaseActorOf Method (ActionIActorDsl, String) |
Creates a new actor by defining the behavior inside the
configure action.
Examples ActorOf(c =>
{
c.Receive<string>((msg, ctx) => ctx.Sender.Tell("Hello " + msg));
});
Namespace:
Akka.TestKit
Assembly:
Akka.TestKit (in Akka.TestKit.dll) Version: 1.2.3.129 (1.2.3.129)
Syntax public IActorRef ActorOf(
Action<IActorDsl> configure,
string name = null
)
member ActorOf :
configure : Action<IActorDsl> *
?name : string
(* Defaults:
let _name = defaultArg name null
*)
-> IActorRef
Parameters
- configure
- Type: SystemActionIActorDsl
An action that configures the actor's behavior. - name (Optional)
- Type: SystemString
Optional: The name of the actor.
Return Value
Type:
IActorRefTBD
See Also