Partager via


ActorService Constructeur

Définition

Initialise une nouvelle instance de la classe ActorService.

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)

Paramètres

context
StatefulServiceContext

Contexte de service sous lequel le service d’acteur fonctionne.

actorTypeInfo
ActorTypeInformation

Informations de type de l’acteur.

actorFactory
Func<ActorService,ActorId,ActorBase>

Méthode de fabrique pour créer des objets Actor.

stateManagerFactory
Func<ActorBase,IActorStateProvider,IActorStateManager>

Méthode de fabrique à créer IActorStateManager

stateProvider
IActorStateProvider

Fournisseur d’état pour stocker et accéder à l’état des objets Actor.

settings
ActorServiceSettings

Paramètres utilisés pour configurer le comportement du service Actor.

S’applique à