InstanceStore Class

InstanceStore Class

.NET Framework (current version)
 

Represents an instance store.

Namespace:   System.Runtime.DurableInstancing
Assembly:  System.Runtime.DurableInstancing (in System.Runtime.DurableInstancing.dll)

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

public abstract class InstanceStore

NameDescription
System_CAPS_protmethodInstanceStore()

Initializes an instance of the InstanceStore class.

NameDescription
System_CAPS_pubpropertyDefaultInstanceOwner

Gets or sets the default instance owner.

NameDescription
System_CAPS_pubmethodBeginExecute(InstanceHandle, InstancePersistenceCommand, TimeSpan, AsyncCallback, Object)

Asynchronously executes persistence commands such as LoadWorkflowCommand and SaveWorkflowCommand.

System_CAPS_protmethodBeginTryCommand(InstancePersistenceContext, InstancePersistenceCommand, TimeSpan, AsyncCallback, Object)

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.

System_CAPS_pubmethodBeginWaitForEvents(InstanceHandle, TimeSpan, AsyncCallback, Object)

Begins an asynchronous operation to listen for any events raised by the instance store for a specific instance handle.

System_CAPS_pubmethodCreateInstanceHandle()

Creates an instance handle.

System_CAPS_pubmethodCreateInstanceHandle(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.

System_CAPS_pubmethodCreateInstanceHandle(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.)

System_CAPS_pubmethodCreateInstanceHandle(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.

System_CAPS_pubmethodEndExecute(IAsyncResult)

Ends the asynchronous operation.

System_CAPS_protmethodEndTryCommand(IAsyncResult)

Ends an asynchronous operation.

System_CAPS_pubmethodEndWaitForEvents(IAsyncResult)

Ends the asynchronous operation initiated by the BeginWaitForEvents method.

System_CAPS_pubmethodEquals(Object)

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

System_CAPS_pubmethodExecute(InstanceHandle, InstancePersistenceCommand, TimeSpan)

Executes a persistence command synchronously. Examples of persistence commands are: LoadWorkflowCommand and SaveWorkflowCommand.

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_protmethodGetEvents(InstanceOwner)

Gets all the signaled events bound to an InstanceOwner object.

System_CAPS_pubmethodGetHashCode()

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

System_CAPS_protmethodGetInstanceOwners()

Gets each InstanceOwner object that is bound to a valid instance handle or has not been garbage collected.

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_protmethodOnFreeInstanceHandle(InstanceHandle, Object)

Invoked when an instance handle is freed.

System_CAPS_protmethodOnNewInstanceHandle(InstanceHandle)

Invoked when a new instance handle is created.

System_CAPS_protmethodResetEvent(InstancePersistenceEvent, InstanceOwner)

Resets the signaled event and removes the event from the signaled events list maintained by the instance owner.

System_CAPS_protmethodSignalEvent(InstancePersistenceEvent, InstanceOwner)

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.

System_CAPS_pubmethodToString()

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

System_CAPS_protmethodTryCommand(InstancePersistenceContext, InstancePersistenceCommand, TimeSpan)

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.

System_CAPS_pubmethodWaitForEvents(InstanceHandle, TimeSpan)

A workflow host typically invokes this method to wait for an event to be signaled.

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.

System_CAPS_warningWarning

Workflow definitions for persisted workflows cannot be changed. If a workflow definition is changed after it is persisted, the workflow runtime will crash when the workflow is reloaded.

.NET Framework
Available since 4.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:
© 2016 Microsoft