| PropsCreateTActor Method (ExpressionFuncTActor, SupervisorStrategy) |
Creates an actor using a specified lambda expression.
Namespace:
Akka.Actor
Assembly:
Akka (in Akka.dll) Version: 1.2.3.42 (1.2.3.42)
Syntax public static Props Create<TActor>(
Expression<Func<TActor>> factory,
SupervisorStrategy supervisorStrategy = null
)
where TActor : ActorBase
static member Create :
factory : Expression<Func<'TActor>> *
?supervisorStrategy : SupervisorStrategy
(* Defaults:
let _supervisorStrategy = defaultArg supervisorStrategy null
*)
-> Props when '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:
PropsThe newly created
Props.
Exceptions Exception | Condition |
---|
ArgumentException | The create function must be a 'new T (args)' expression |
See Also