Props..::..Create<(Of <(<'TActor>)>)> Method (Expression<(Of <(<'Func<(Of <(<'TActor>)>)>>)>)>, SupervisorStrategy)
Creates the specified factory.
Namespace:
Akka.ActorAssembly: Akka (in Akka.dll)
Syntax
public static Props Create<TActor>( Expression<Func<TActor>> factory, SupervisorStrategy supervisorStrategy ) where TActor : ActorBase, ActorBase, ActorBase
Public Shared Function Create(Of TActor As {ActorBase, ActorBase, ActorBase}) ( _ factory As Expression(Of Func(Of TActor)), _ supervisorStrategy As SupervisorStrategy _ ) As Props
public: generic<typename TActor> where TActor : ActorBase, ActorBase, ActorBase static Props^ Create( Expression<Func<TActor>^>^ factory, SupervisorStrategy^ supervisorStrategy )
Type Parameters
- TActor
- The type of the t actor.
Parameters
- factory
- Type: Expression<(Of <(<'Func<(Of <(<'TActor>)>)>>)>)>
The factory.
- supervisorStrategy
- Type: Akka.Actor..::..SupervisorStrategy
Optional: Supervisor strategy
Return Value
Props.Exceptions
Exception | Condition |
---|---|
ArgumentException | The create function must be a 'new T (args)' expression |