ActorService Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the ActorService class.
public ActorService (System.Fabric.StatefulServiceContext context, Microsoft.ServiceFabric.Actors.Runtime.ActorTypeInformation actorTypeInfo, Func<Microsoft.ServiceFabric.Actors.Runtime.ActorService,Microsoft.ServiceFabric.Actors.ActorId,Microsoft.ServiceFabric.Actors.Runtime.ActorBase> actorFactory = default, Func<Microsoft.ServiceFabric.Actors.Runtime.ActorBase,Microsoft.ServiceFabric.Actors.Runtime.IActorStateProvider,Microsoft.ServiceFabric.Actors.Runtime.IActorStateManager> stateManagerFactory = default, Microsoft.ServiceFabric.Actors.Runtime.IActorStateProvider stateProvider = default, Microsoft.ServiceFabric.Actors.Runtime.ActorServiceSettings settings = default);
new Microsoft.ServiceFabric.Actors.Runtime.ActorService : System.Fabric.StatefulServiceContext * Microsoft.ServiceFabric.Actors.Runtime.ActorTypeInformation * Func<Microsoft.ServiceFabric.Actors.Runtime.ActorService, Microsoft.ServiceFabric.Actors.ActorId, Microsoft.ServiceFabric.Actors.Runtime.ActorBase> * Func<Microsoft.ServiceFabric.Actors.Runtime.ActorBase, Microsoft.ServiceFabric.Actors.Runtime.IActorStateProvider, Microsoft.ServiceFabric.Actors.Runtime.IActorStateManager> * Microsoft.ServiceFabric.Actors.Runtime.IActorStateProvider * Microsoft.ServiceFabric.Actors.Runtime.ActorServiceSettings -> Microsoft.ServiceFabric.Actors.Runtime.ActorService
Public Sub New (context As StatefulServiceContext, actorTypeInfo As ActorTypeInformation, Optional actorFactory As Func(Of ActorService, ActorId, ActorBase) = Nothing, Optional stateManagerFactory As Func(Of ActorBase, IActorStateProvider, IActorStateManager) = Nothing, Optional stateProvider As IActorStateProvider = Nothing, Optional settings As ActorServiceSettings = Nothing)
Parameters
- context
- StatefulServiceContext
Service context the actor service is operating under.
- actorTypeInfo
- ActorTypeInformation
The type information of the Actor.
- actorFactory
- Func<ActorService,ActorId,ActorBase>
The factory method to create Actor objects.
- stateManagerFactory
- Func<ActorBase,IActorStateProvider,IActorStateManager>
The factory method to create IActorStateManager
- stateProvider
- IActorStateProvider
The state provider to store and access the state of the Actor objects.
- settings
- ActorServiceSettings
The settings used to configure the behavior of the Actor service.