Click or drag to resize
Akka.NETSpawnspawnObja Method
Spawns an actor using specified actor quotation. The actor can only be used locally.

Namespace:  Akka.FSharp
Assembly:  Akka.FSharp (in Akka.FSharp.dll) Version: 1.2.3.42 (1.2.3.42)
Syntax
public static IActorRef spawnObj<a>(
	IActorRefFactory actorFactory,
	string name,
	FSharpExpr<FSharpFunc<Unit, a>> f
)
where a : ActorBase

Parameters

actorFactory
Type: Akka.ActorIActorRefFactory
Either actor system or parent actor
name
Type: SystemString
Name of spawned child actor
f
Type: Microsoft.FSharp.QuotationsFSharpExprFSharpFuncUnit, a
Used to create a new instance of the actor

Type Parameters

a

[Missing <typeparam name="a"/> documentation for "M:Akka.FSharp.Spawn.spawnObj``1(Akka.Actor.IActorRefFactory,System.String,Microsoft.FSharp.Quotations.FSharpExpr{Microsoft.FSharp.Core.FSharpFunc{Microsoft.FSharp.Core.Unit,``0}})"]

Return Value

Type: IActorRef

[Missing <returns> documentation for "M:Akka.FSharp.Spawn.spawnObj``1(Akka.Actor.IActorRefFactory,System.String,Microsoft.FSharp.Quotations.FSharpExpr{Microsoft.FSharp.Core.FSharpFunc{Microsoft.FSharp.Core.Unit,``0}})"]

See Also