Click or drag to resize
Akka.NETFSharpspawnViewEvent, State Method
Spawns a persistent view instance. Unlike actor's views are readonly versions of statefull, recoverable actors.

Namespace:  Akka.Persistence
Assembly:  Akka.Persistence.FSharp (in Akka.Persistence.FSharp.dll) Version: 0.0.0.0
Syntax
public static IActorRef spawnView<Event, State>(
	IActorRefFactory actorFactory,
	string viewName,
	string name,
	FSharpPerspective<Event, State> perspective,
	FSharpList<SpawnSpawnOption> options
)

Parameters

actorFactory
Type: Akka.ActorIActorRefFactory
Object responsible for actor instantiation.
viewName
Type: SystemString
Identifies uniquely current view's state. It's different that event source, since many views with different internal states can relate to single event source.
name
Type: SystemString
Identifies uniquely current actor across different incarnations. It's necessary to identify it's event source.
perspective
Type: Akka.PersistenceFSharpPerspectiveEvent, State

[Missing <param name="perspective"/> documentation for "M:Akka.Persistence.FSharp.spawnView``2(Akka.Actor.IActorRefFactory,System.String,System.String,Akka.Persistence.FSharp.Perspective{``0,``1},Microsoft.FSharp.Collections.FSharpList{Akka.FSharp.Spawn.SpawnOption})"]

options
Type: Microsoft.FSharp.CollectionsFSharpListSpawnSpawnOption
Additional spawning options.

Type Parameters

Event

[Missing <typeparam name="Event"/> documentation for "M:Akka.Persistence.FSharp.spawnView``2(Akka.Actor.IActorRefFactory,System.String,System.String,Akka.Persistence.FSharp.Perspective{``0,``1},Microsoft.FSharp.Collections.FSharpList{Akka.FSharp.Spawn.SpawnOption})"]

State

[Missing <typeparam name="State"/> documentation for "M:Akka.Persistence.FSharp.spawnView``2(Akka.Actor.IActorRefFactory,System.String,System.String,Akka.Persistence.FSharp.Perspective{``0,``1},Microsoft.FSharp.Collections.FSharpList{Akka.FSharp.Spawn.SpawnOption})"]

Return Value

Type: IActorRef

[Missing <returns> documentation for "M:Akka.Persistence.FSharp.spawnView``2(Akka.Actor.IActorRefFactory,System.String,System.String,Akka.Persistence.FSharp.Perspective{``0,``1},Microsoft.FSharp.Collections.FSharpList{Akka.FSharp.Spawn.SpawnOption})"]

See Also