This documentation is archived and is not being maintained.
InstancePersistenceContext Class
Visual Studio 2010
Represents execution state information while a persistence command is being executed.
Assembly: System.Runtime.DurableInstancing (in System.Runtime.DurableInstancing.dll)
The InstancePersistenceContext type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | InstanceHandle | Gets the current instance handle. |
![]() | InstanceVersion | Gets the version of the lock held on the current instance by the current instance handle. |
![]() | InstanceView | Gets the instance view object that represents the in-memory state of the current instance. This view reflects updates as they are made by the command in progress. |
![]() | LockToken | Gets the lock token of the instance owner bound to the current instance handle. |
![]() | UserContext | Gets the user context information attached to the current instance handle. |
| Name | Description | |
|---|---|---|
![]() | AssociatedInstanceKey | Indicates that the persistence provider has successfully associated a key to the current instance in the instance store. The identifier of the key is specified as a parameter. |
![]() | BeginBindReclaimedLock | Begin an asynchronous operation to bind an existing lock on an instance to the current instance handle. The version of the existing lock is passed as a parameter. |
![]() | BeginExecute | Begins executing a persistence command asynchronously. |
![]() | BindAcquiredLock | Binds a newly acquired lock on an instance to the current instance handle. The version of the acquired lock is passed as a parameter. |
![]() | BindEvent | Binds an InstancePersistenceEvent to an instance handle. |
![]() | BindInstance | Binds an instance whose identifier is specified as a parameter to the current instance handle. |
![]() | BindInstanceOwner | Binds an instance owner to the current instance handle. |
![]() | BindReclaimedLock | Binds an existing lock on an instance to the current instance handle. The version of the existing lock is passed as a parameter. |
![]() | CompletedInstance | Indicates that the persistence provider has successfully marked the current instance as complete in the instance store. |
![]() | CompletedInstanceKey | Indicates that the persistence provider has successfully marked a key as complete in the external store. The identifier of the key is specified as a parameter. |
![]() | CreateBindReclaimedLockException | Creates an instance of an exception which can be thrown from TryCommand to trigger BindReclaimedLock behavior. |
![]() | EndBindReclaimedLock | Ends the asynchronous operation started by the BeginBindReclaimedLock(Int64, TimeSpan, AsyncCallback, Object) method. |
![]() | EndExecute | Ends the asynchronous operation. |
![]() | Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() | Execute | Executes a persistence command. |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | LoadedInstance | Indicates that the persistence provider has successfully retrieved the current instance from the instance store. |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | PersistedInstance | Indicates that the persistence provider has successfully persisted a set of instance data to the instance store. This has the effect of initializing the instance if it wasn’t already. |
![]() | QueriedInstanceStore | Adds the InstanceStoreQueryResult passed as a parameter to a list of InstanceStoreQueryResult objects in an InstanceView. |
![]() | ReadInstanceKeyMetadata | Indicates that the persistence provider has successfully read some instance key metadata for a key associated to the current instance from the instance store. |
![]() | ReadInstanceMetadata | Indicates that the persistence provider has successfully read some instance metadata for the current instance from the instance store. |
![]() | ReadInstanceOwnerMetadata | Sets the instance owner metadata using the data passed in the parameter. |
![]() | SetCancellationHandler | Sets the cancellation handler to be called when the cancel of an operation is requested. |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
![]() | UnassociatedInstanceKey | Indicates that the persistence provider has successfully disassociated a key from the current instance in the instance store. The identifier of the key is specified as a parameter. |
![]() | WroteInstanceKeyMetadataValue | Indicates that the persistence provider has successfully written a metadata value for an instance key that is associated with the current instance to the instance store |
![]() | WroteInstanceMetadataValue | Indicates that the persistence provider has successfully written a metadata value for the current instance to the external instance store. |
![]() | WroteInstanceOwnerMetadataValue | Indicates that the persistence provider has successfully written a metadata value for the current instance owner to the instance store. |
An instance of this class is passed to the TryCommand method of persistence provider implementations. Persistence providers use this class to inspect the in-memory view of the instance as well as indicate the results of operations on the external store which may affect the view or other in-memory context.
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.
Show:
