SharedConnectionWorkflowCommitWorkBatchService Class
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.
Caution
The System.Workflow.* types are deprecated. Instead, please use the new types from System.Activities.*
Represents the shared-connection version of the WorkflowCommitWorkBatchService service used by the runtime. 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
- Inheritance
-
SharedConnectionWorkflowCommitWorkBatchService
- Attributes
Remarks
Note
This material discusses types and namespaces that are obsolete. For more information, see Deprecated Types in Windows Workflow Foundation 4.5.
The SharedConnectionWorkflowCommitWorkBatchService service is used for database transactions that use a shared connection between different objects. To use the SharedConnectionWorkflowCommitWorkBatchService instead of the DefaultWorkflowCommitWorkBatchService in your WorkflowRuntime instance, use the AddService method.
Important
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.
Constructors
SharedConnectionWorkflowCommitWorkBatchService(NameValueCollection) |
Initializes a SharedConnectionWorkflowCommitWorkBatchService class. |
SharedConnectionWorkflowCommitWorkBatchService(String) |
Initializes a SharedConnectionWorkflowCommitWorkBatchService class using a database connection string. |
Properties
EnableRetries |
Gets or sets a value specifying whether the SharedConnectionWorkflowCommitWorkBatchService will retry committing a work batch. |
Runtime |
Gets the WorkflowRuntime for this service. (Inherited from WorkflowRuntimeService) |
State |
Gets the state of the WorkflowRuntimeService. (Inherited from WorkflowRuntimeService) |
Methods
CommitWorkBatch(WorkflowCommitWorkBatchService+CommitWorkBatchCallback) |
Creates a transaction if one does not exist. |
Equals(Object) |
Determines whether the specified object is equal to the current object. (Inherited from Object) |
GetHashCode() |
Serves as the default hash function. (Inherited from Object) |
GetType() |
Gets the Type of the current instance. (Inherited from Object) |
MemberwiseClone() |
Creates a shallow copy of the current Object. (Inherited from Object) |
OnStarted() |
When overridden in a derived class, represents the method that will be called when the workflow runtime engine raises the Started event. (Inherited from WorkflowRuntimeService) |
OnStopped() |
Represents the method called when the workflow runtime raises the Stopped event. |
RaiseServicesExceptionNotHandledEvent(Exception, Guid) |
Raises the ServicesExceptionNotHandled event. (Inherited from WorkflowRuntimeService) |
Start() |
Represents the method called to start the service. |
Stop() |
When overridden in a derived class, stops the service and changes the State to Stopping. (Inherited from WorkflowRuntimeService) |
ToString() |
Returns a string that represents the current object. (Inherited from Object) |