Click or drag to resize
Akka.NETSpawnspawneMessage, Returned Method
Spawns an actor using specified actor computation expression, using an Expression AST. The actor code can be deployed remotely.

Namespace:  Akka.FSharp
Assembly:  Akka.FSharp (in Akka.FSharp.dll) Version: 1.2.3.42 (1.2.3.42)
Syntax
public static IActorRef spawne<Message, Returned>(
	IActorRefFactory actorFactory,
	string name,
	FSharpExpr<FSharpFunc<ActorsActor<Message>, ActorsCont<Message, Returned>>> expr,
	FSharpList<SpawnSpawnOption> options
)

Parameters

actorFactory
Type: Akka.ActorIActorRefFactory
Either actor system or parent actor
name
Type: SystemString
Name of spawned child actor
expr
Type: Microsoft.FSharp.QuotationsFSharpExprFSharpFuncActorsActorMessage, ActorsContMessage, Returned
F# expression compiled down to receive function used by actor for response for incoming request
options
Type: Microsoft.FSharp.CollectionsFSharpListSpawnSpawnOption
List of options used to configure actor creation

Type Parameters

Message

[Missing <typeparam name="Message"/> documentation for "M:Akka.FSharp.Spawn.spawne``2(Akka.Actor.IActorRefFactory,System.String,Microsoft.FSharp.Quotations.FSharpExpr{Microsoft.FSharp.Core.FSharpFunc{Akka.FSharp.Actors.Actor{``0},Akka.FSharp.Actors.Cont{``0,``1}}},Microsoft.FSharp.Collections.FSharpList{Akka.FSharp.Spawn.SpawnOption})"]

Returned

[Missing <typeparam name="Returned"/> documentation for "M:Akka.FSharp.Spawn.spawne``2(Akka.Actor.IActorRefFactory,System.String,Microsoft.FSharp.Quotations.FSharpExpr{Microsoft.FSharp.Core.FSharpFunc{Akka.FSharp.Actors.Actor{``0},Akka.FSharp.Actors.Cont{``0,``1}}},Microsoft.FSharp.Collections.FSharpList{Akka.FSharp.Spawn.SpawnOption})"]

Return Value

Type: IActorRef

[Missing <returns> documentation for "M:Akka.FSharp.Spawn.spawne``2(Akka.Actor.IActorRefFactory,System.String,Microsoft.FSharp.Quotations.FSharpExpr{Microsoft.FSharp.Core.FSharpFunc{Akka.FSharp.Actors.Actor{``0},Akka.FSharp.Actors.Cont{``0,``1}}},Microsoft.FSharp.Collections.FSharpList{Akka.FSharp.Spawn.SpawnOption})"]

See Also