SharedConnectionWorkflowCommitWorkBatchService Classe
Definição
Cuidado
The System.Workflow.* types are deprecated. Instead, please use the new types from System.Activities.*
Representa a versão da conexão compartilhada do serviço WorkflowCommitWorkBatchService usado pelo runtime.Represents the shared-connection version of the WorkflowCommitWorkBatchService service used by the runtime. Nesse contexto, a conexão compartilhada significa que o serviço usa a mesma conexão de SQL para o serviço de acompanhamento e o de persistência.In this context, shared-connection means that the service uses the same SQL connection for both the tracking and persistence services.
public ref class SharedConnectionWorkflowCommitWorkBatchService : System::Workflow::Runtime::Hosting::WorkflowCommitWorkBatchService
public class SharedConnectionWorkflowCommitWorkBatchService : System.Workflow.Runtime.Hosting.WorkflowCommitWorkBatchService
[System.Obsolete("The System.Workflow.* types are deprecated. Instead, please use the new types from System.Activities.*")]
public class SharedConnectionWorkflowCommitWorkBatchService : System.Workflow.Runtime.Hosting.WorkflowCommitWorkBatchService
type SharedConnectionWorkflowCommitWorkBatchService = class
inherit WorkflowCommitWorkBatchService
[<System.Obsolete("The System.Workflow.* types are deprecated. Instead, please use the new types from System.Activities.*")>]
type SharedConnectionWorkflowCommitWorkBatchService = class
inherit WorkflowCommitWorkBatchService
Public Class SharedConnectionWorkflowCommitWorkBatchService
Inherits WorkflowCommitWorkBatchService
- Herança
-
SharedConnectionWorkflowCommitWorkBatchService
- Atributos
Comentários
Observação
Este material discute tipos e namespaces obsoletos.This material discusses types and namespaces that are obsolete. Para obter mais informações, consulte Deprecated Types in Windows Workflow Foundation 4.5 (Tipos preteridos no Windows Workflow Foundation 4.5).For more information, see Deprecated Types in Windows Workflow Foundation 4.5.
O SharedConnectionWorkflowCommitWorkBatchService serviço é usado para transações de banco de dados que usam uma conexão compartilhada entre objetos diferentes.The SharedConnectionWorkflowCommitWorkBatchService service is used for database transactions that use a shared connection between different objects. Para usar o em SharedConnectionWorkflowCommitWorkBatchService vez do DefaultWorkflowCommitWorkBatchService em sua WorkflowRuntime instância, use o AddService método.To use the SharedConnectionWorkflowCommitWorkBatchService instead of the DefaultWorkflowCommitWorkBatchService in your WorkflowRuntime instance, use the AddService method.
Importante
Se o SQL Server usado pelo SharedConnectionWorkflowCommitWorkBatchService estiver inativo como aquele causado por failovers de cluster do SQL ou por problemas de rede intermitentes, o tentará SharedConnectionWorkflowCommitWorkBatchService novamente o processo de confirmação até 20 vezes antes de gerar um ServicesExceptionNotHandled evento.If the SQL server used by the SharedConnectionWorkflowCommitWorkBatchService is down such as that caused by SQL cluster failovers or intermittent network issues, the SharedConnectionWorkflowCommitWorkBatchService will retry the commit process up to 20 times before raising a ServicesExceptionNotHandled event.
Construtores
| SharedConnectionWorkflowCommitWorkBatchService(NameValueCollection) |
Inicializa uma classe SharedConnectionWorkflowCommitWorkBatchService.Initializes a SharedConnectionWorkflowCommitWorkBatchService class. |
| SharedConnectionWorkflowCommitWorkBatchService(String) |
Inicializa uma classe SharedConnectionWorkflowCommitWorkBatchService usando uma cadeia de conexão de banco de dados.Initializes a SharedConnectionWorkflowCommitWorkBatchService class using a database connection string. |
Propriedades
| EnableRetries |
Obtém ou define um valor que especifica se o SharedConnectionWorkflowCommitWorkBatchService tentará novamente confirmar um lote de trabalho.Gets or sets a value specifying whether the SharedConnectionWorkflowCommitWorkBatchService will retry committing a work batch. |
| Runtime |
Obtém o WorkflowRuntime para este serviço.Gets the WorkflowRuntime for this service. (Herdado de WorkflowRuntimeService) |
| State |
Obtém o estado do WorkflowRuntimeService.Gets the state of the WorkflowRuntimeService. (Herdado de WorkflowRuntimeService) |
Métodos
| CommitWorkBatch(WorkflowCommitWorkBatchService+CommitWorkBatchCallback) |
Cria uma transação se ainda não existir nenhuma.Creates a transaction if one does not exist. |
| Equals(Object) |
Determina se o objeto especificado é igual ao objeto atual.Determines whether the specified object is equal to the current object. (Herdado de Object) |
| GetHashCode() |
Serve como a função de hash padrão.Serves as the default hash function. (Herdado de Object) |
| GetType() |
Obtém o Type da instância atual.Gets the Type of the current instance. (Herdado de Object) |
| MemberwiseClone() |
Cria uma cópia superficial do Object atual.Creates a shallow copy of the current Object. (Herdado de Object) |
| OnStarted() |
Quando substituído em uma classe derivada, representa o método que será chamado quando o mecanismo de runtime de fluxo de trabalho gerar o evento Started.When overridden in a derived class, represents the method that will be called when the workflow runtime engine raises the Started event. (Herdado de WorkflowRuntimeService) |
| OnStopped() |
Representa o método chamado quando o runtime de fluxo de trabalho gera o evento Stopped.Represents the method called when the workflow runtime raises the Stopped event. |
| RaiseServicesExceptionNotHandledEvent(Exception, Guid) |
Aciona o evento ServicesExceptionNotHandled.Raises the ServicesExceptionNotHandled event. (Herdado de WorkflowRuntimeService) |
| Start() |
Representa o método chamado para iniciar o serviço.Represents the method called to start the service. |
| Stop() |
Quando substituído em uma classe derivada, interrompe o serviço e altera o State para Stopping.When overridden in a derived class, stops the service and changes the State to Stopping. (Herdado de WorkflowRuntimeService) |
| ToString() |
Retorna uma cadeia de caracteres que representa o objeto atual.Returns a string that represents the current object. (Herdado de Object) |