SharedConnectionWorkflowCommitWorkBatchService SharedConnectionWorkflowCommitWorkBatchService SharedConnectionWorkflowCommitWorkBatchService SharedConnectionWorkflowCommitWorkBatchService Class

Definition

Warning

This API is now obsolete.

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
[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
Public Class SharedConnectionWorkflowCommitWorkBatchService
Inherits WorkflowCommitWorkBatchService
Inheritance
SharedConnectionWorkflowCommitWorkBatchServiceSharedConnectionWorkflowCommitWorkBatchServiceSharedConnectionWorkflowCommitWorkBatchServiceSharedConnectionWorkflowCommitWorkBatchService
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) SharedConnectionWorkflowCommitWorkBatchService(NameValueCollection) SharedConnectionWorkflowCommitWorkBatchService(NameValueCollection) SharedConnectionWorkflowCommitWorkBatchService(NameValueCollection)

Initializes a SharedConnectionWorkflowCommitWorkBatchService class.

SharedConnectionWorkflowCommitWorkBatchService(String) SharedConnectionWorkflowCommitWorkBatchService(String) SharedConnectionWorkflowCommitWorkBatchService(String) SharedConnectionWorkflowCommitWorkBatchService(String)

Initializes a SharedConnectionWorkflowCommitWorkBatchService class using a database connection string.

Properties

EnableRetries EnableRetries EnableRetries EnableRetries

Gets or sets a value specifying whether the SharedConnectionWorkflowCommitWorkBatchService will retry committing a work batch.

Runtime Runtime Runtime Runtime

Gets the WorkflowRuntime for this service.

(Inherited from WorkflowRuntimeService)
State State State State

Gets the state of the WorkflowRuntimeService.

(Inherited from WorkflowRuntimeService)

Methods

CommitWorkBatch(WorkflowCommitWorkBatchService+CommitWorkBatchCallback) CommitWorkBatch(WorkflowCommitWorkBatchService+CommitWorkBatchCallback) CommitWorkBatch(WorkflowCommitWorkBatchService+CommitWorkBatchCallback) CommitWorkBatch(WorkflowCommitWorkBatchService+CommitWorkBatchCallback)

Creates a transaction if one does not exist.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
OnStarted() OnStarted() OnStarted() 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() OnStopped() OnStopped() OnStopped()

Represents the method called when the workflow runtime raises the Stopped event.

RaiseServicesExceptionNotHandledEvent(Exception, Guid) RaiseServicesExceptionNotHandledEvent(Exception, Guid) RaiseServicesExceptionNotHandledEvent(Exception, Guid) RaiseServicesExceptionNotHandledEvent(Exception, Guid)

Raises the ServicesExceptionNotHandled event.

(Inherited from WorkflowRuntimeService)
Start() Start() Start() Start()

Represents the method called to start the service.

Stop() Stop() Stop() Stop()

When overridden in a derived class, stops the service and changes the State to Stopping.

(Inherited from WorkflowRuntimeService)
ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to