Click or drag to resize
Akka.NETTestKitBaseActorOfTActor Method (ExpressionFuncTActor)
Create a new actor as child of Sys using an expression that calls the constructor of TActor.
Examples
ActorOf<MyActor>(()=>new MyActor("value", 4711))

Namespace:  Akka.TestKit
Assembly:  Akka.TestKit (in Akka.TestKit.dll) Version: 1.2.3.42 (1.2.3.42)
Syntax
public IActorRef ActorOf<TActor>(
	Expression<Func<TActor>> factory
)
where TActor : ActorBase

Parameters

factory
Type: System.Linq.ExpressionsExpressionFuncTActor
An expression that calls the constructor of TActor

Type Parameters

TActor
The type of the actor.

Return Value

Type: IActorRef
TBD
See Also