SharedConnectionWorkflowCommitWorkBatchService Class

 
Note: 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.

Namespace:   System.Workflow.Runtime.Hosting
Assembly:  System.Workflow.Runtime (in System.Workflow.Runtime.dll)

System.Object
  System.Workflow.Runtime.Hosting.WorkflowRuntimeService
    System.Workflow.Runtime.Hosting.WorkflowCommitWorkBatchService
      System.Workflow.Runtime.Hosting.SharedConnectionWorkflowCommitWorkBatchService

[ObsoleteAttribute("The System.Workflow.* types are deprecated.  Instead, please use the new types from System.Activities.*")]
public class SharedConnectionWorkflowCommitWorkBatchService : WorkflowCommitWorkBatchService

NameDescription
System_CAPS_pubmethodSharedConnectionWorkflowCommitWorkBatchService(NameValueCollection)

Initializes a SharedConnectionWorkflowCommitWorkBatchService class.

System_CAPS_pubmethodSharedConnectionWorkflowCommitWorkBatchService(String)

Initializes a SharedConnectionWorkflowCommitWorkBatchService class using a database connection string.

NameDescription
System_CAPS_pubpropertyEnableRetries

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

System_CAPS_protpropertyRuntime

Gets the WorkflowRuntime for this service.(Inherited from WorkflowRuntimeService.)

System_CAPS_protpropertyState

Gets the state of the WorkflowRuntimeService.(Inherited from WorkflowRuntimeService.)

NameDescription
System_CAPS_protmethodCommitWorkBatch(WorkflowCommitWorkBatchService.CommitWorkBatchCallback)
System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_protmethodOnStarted()

When overridden in a derived class, represents the method that will be called when the workflow runtime engine raises the WorkflowRuntime.Started event.(Inherited from WorkflowRuntimeService.)

System_CAPS_protmethodOnStopped()

Represents the method called when the workflow runtime raises the Stopped event.(Overrides WorkflowRuntimeService.OnStopped().)

System_CAPS_protmethodRaiseServicesExceptionNotHandledEvent(Exception, Guid)
System_CAPS_protmethodStart()

Represents the method called to start the service.(Overrides WorkflowRuntimeService.Start().)

System_CAPS_protmethodStop()

When overridden in a derived class, stops the service and changes the State to Stopping.(Inherited from WorkflowRuntimeService.)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

System_CAPS_noteNote

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.

System_CAPS_importantImportant

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.

.NET Framework
Available since 3.0

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: