ActorService Construtor
Definição
Importante
Algumas informações se referem a produtos de pré-lançamento que podem ser substancialmente modificados antes do lançamento. A Microsoft não oferece garantias, expressas ou implícitas, das informações aqui fornecidas.
Inicializa uma nova instância da 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)
Parâmetros
- context
- StatefulServiceContext
Contexto de serviço no qual o serviço de ator está operando.
- actorTypeInfo
- ActorTypeInformation
As informações de tipo do Ator.
- actorFactory
- Func<ActorService,ActorId,ActorBase>
O método de fábrica para criar objetos Actor.
- stateManagerFactory
- Func<ActorBase,IActorStateProvider,IActorStateManager>
O método de fábrica a ser criado IActorStateManager
- stateProvider
- IActorStateProvider
O provedor de estado para armazenar e acessar o estado dos objetos Actor.
- settings
- ActorServiceSettings
As configurações usadas para definir o comportamento do serviço ator.
Aplica-se a
Azure SDK for .NET