Click or drag to resize
Akka.NETPropsCreateTActor Method (ExpressionFuncTActor, SupervisorStrategy)
Creates an actor using a specified lambda expression.

Namespace:  Akka.Actor
Assembly:  Akka (in Akka.dll) Version: 1.2.3.129 (1.2.3.129)
Syntax
public static Props Create<TActor>(
	Expression<Func<TActor>> factory,
	SupervisorStrategy supervisorStrategy = null
)
where TActor : ActorBase

Parameters

factory
Type: System.Linq.ExpressionsExpressionFuncTActor
The lambda expression used to create the actor.
supervisorStrategy (Optional)
Type: Akka.ActorSupervisorStrategy
Optional: The supervisor strategy used to manage the actor.

Type Parameters

TActor
The type of the actor to create.

Return Value

Type: Props
The newly created Props.
Exceptions
ExceptionCondition
ArgumentExceptionThe create function must be a 'new T (args)' expression
See Also