0 out of 3 rated this helpful - Rate this topic

InstanceStore Class

Represents an instance store.

System.Object
  System.Runtime.DurableInstancing.InstanceStore
    System.Activities.DurableInstancing.SqlWorkflowInstanceStore

Namespace:  System.Runtime.DurableInstancing
Assembly:  System.Runtime.DurableInstancing (in System.Runtime.DurableInstancing.dll)
public abstract class InstanceStore

The InstanceStore type exposes the following members.

  Name Description
Protected method InstanceStore Initializes an instance of the InstanceStore class.
Top
  Name Description
Public property DefaultInstanceOwner Gets or sets the default instance owner.
Top
  Name Description
Public method BeginExecute Asynchronously executes persistence commands such as LoadWorkflowCommand and SaveWorkflowCommand.
Protected method BeginTryCommand A persistence provider implements this method, which determines whether a particular persistence command can be executed. If the command can be executed, executes the command asynchronously.
Public method BeginWaitForEvents Begins an asynchronous operation to listen for any events raised by the instance store for a specific instance handle.
Public method CreateInstanceHandle() Creates an instance handle.
Public method CreateInstanceHandle(Guid) Creates an instance handle. If the DefaultInstanceOwner is set, the value is automatically bound as the new handle’s instance owner. The instance identifier passed as a parameter is automatically bound as the new handle’s instance.
Public method CreateInstanceHandle(InstanceOwner) Creates an instance handle. If the instance owner passed as a parameter is not null, the value is automatically bound as the new handle’s instance owner. (Otherwise, no instance owner is bound, even if DefaultInstanceOwner is set.)
Public method CreateInstanceHandle(InstanceOwner, Guid) Creates an instance handle. If the instance owner passed as a parameter is not null, the value is automatically bound as the new handle’s instance owner. (Otherwise, no instance owner is bound, even if DefaultInstanceOwner is set.) The instance identifier passed as a parameter is automatically bound as the new handle’s instance.
Public method EndExecute Ends the asynchronous operation.
Protected method EndTryCommand Ends an asynchronous operation.
Public method EndWaitForEvents Ends the asynchronous operation initiated by the BeginWaitForEvents(InstanceHandle, TimeSpan, AsyncCallback, Object) method.
Public method Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Public method Execute Executes a persistence command synchronously. Examples of persistence commands are: LoadWorkflowCommand and SaveWorkflowCommand.
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Protected method GetEvents Gets all the signaled events bound to an InstanceOwner object.
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Protected method GetInstanceOwners Gets each InstanceOwner object that is bound to a valid instance handle or has not been garbage collected.
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Protected method OnFreeInstanceHandle Invoked when an instance handle is freed.
Protected method OnNewInstanceHandle Invoked when a new instance handle is created.
Protected method ResetEvent Resets the signaled event and removes the event from the signaled events list maintained by the instance owner.
Protected method SignalEvent An instance store invokes this method to signal an event. A workflow host that subscribes for this persistence event receives it and takes an appropriate action.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Protected method TryCommand A persistence provider implements this method, which determines whether a particular persistence command can be executed and if the command can be executed executes it asynchronously.
Public method WaitForEvents A workflow host typically invokes this method to wait for an event to be signaled.
Top

A persistence provider provides access to an instance store through a concrete implementation of the InstanceStore class.

Persistence providers may call InstanceHandle.Free on handles passed to TryCommand, even after the command has finished executing. But persistence providers must not hold strong references to InstanceHandle or InstanceOwner objects, as this can prevent InstanceStore from being garbage collected.

.NET Framework

Supported in: 4

.NET Framework Client Profile

Supported in: 4

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ