Export (0) Print
Expand All

LockingPersistenceProvider Class

The abstract base class from which all durable service persistence providers that implement locking are derived.

Namespace:  System.ServiceModel.Persistence
Assembly:  System.WorkflowServices (in System.WorkflowServices.dll)

public abstract class LockingPersistenceProvider : PersistenceProvider

The LockingPersistenceProvider type exposes the following members.

  NameDescription
Protected methodLockingPersistenceProviderWhen implemented in a derived class, creates a new instance of the LockingPersistenceProvider class, configured with the specified identity value.
Top

  NameDescription
Protected propertyDefaultCloseTimeoutWhen overridden in a derived class, gets the default interval of time provided for a close operation to complete. (Inherited from CommunicationObject.)
Protected propertyDefaultOpenTimeoutWhen overridden in a derived class, gets the default interval of time provided for an open operation to complete. (Inherited from CommunicationObject.)
Public propertyIdRepresents the Guid associated with this instance. (Inherited from PersistenceProvider.)
Protected propertyIsDisposedGets a value that indicates whether the communication object has been disposed. (Inherited from CommunicationObject.)
Public propertyStateGets a value that indicates the current state of the communication object. (Inherited from CommunicationObject.)
Protected propertyThisLockGets the mutually exclusive lock that protects the class instance during a state transition. (Inherited from CommunicationObject.)
Top

  NameDescription
Public methodAbortCauses a communication object to transition immediately from its current state into the closing state. (Inherited from CommunicationObject.)
Public methodBeginClose(AsyncCallback, Object)Begins an asynchronous operation to close a communication object. (Inherited from CommunicationObject.)
Public methodBeginClose(TimeSpan, AsyncCallback, Object)Begins an asynchronous operation to close a communication object with a specified timeout. (Inherited from CommunicationObject.)
Public methodBeginCreate(Object, TimeSpan, AsyncCallback, Object)Begins an asynchronous operation to create instance state information in the persistence store using the parameters. This method does not unlock the instance after saving the state information. (Overrides PersistenceProvider.BeginCreate(Object, TimeSpan, AsyncCallback, Object).)
Public methodBeginCreate(Object, TimeSpan, Boolean, AsyncCallback, Object)Begins an asynchronous operation to create instance state information in the persistence store using the parameters. This method unlocks the instance after saving the instance state if the value of the unlockInstance parameter is true.
Public methodBeginDeleteWhen implemented in a derived class, represents the beginning of the Delete phase. The Delete phase occurs when service state data is permanently deleted from the persistence store. (Inherited from PersistenceProvider.)
Public methodBeginLoad(TimeSpan, AsyncCallback, Object)Begins an asynchronous operation to load an instance based on state information in the persistence store using the parameters. This method does not lock the instance. (Overrides PersistenceProvider.BeginLoad(TimeSpan, AsyncCallback, Object).)
Public methodBeginLoad(TimeSpan, Boolean, AsyncCallback, Object)Begins an asynchronous operation to load an instance based on state information in the persistence store using the parameters. This method locks the instance after loading the instance state if the value of the lockInstance parameter is true.
Public methodBeginLoadIfChanged(TimeSpan, Object, AsyncCallback, Object)When implemented in a derived class, represents the beginning of the LoadIfChanged phase. The LoadIfChanged phase occurs when state data is loaded into the persistence provider from the persistence store and the state data in the persistence store has been changed. This method call does not lock the instance in the persistence store. (Overrides PersistenceProvider.BeginLoadIfChanged(TimeSpan, Object, AsyncCallback, Object).)
Public methodBeginLoadIfChanged(TimeSpan, Object, Boolean, AsyncCallback, Object)When implemented in a derived class, represents the beginning of the LoadIfChanged phase. The LoadIfChanged phase occurs when state data is loaded into the persistence provider from the persistence store and the state data in the persistence store has been changed. This method call lets you specify whether you want to lock the instance in the persistence store.
Public methodBeginOpen(AsyncCallback, Object)Begins an asynchronous operation to open a communication object. (Inherited from CommunicationObject.)
Public methodBeginOpen(TimeSpan, AsyncCallback, Object)Begins an asynchronous operation to open a communication object within a specified interval of time. (Inherited from CommunicationObject.)
Public methodBeginUnlockBegins an asynchronous operation to unlock an instance in the persistence store.
Public methodBeginUpdate(Object, TimeSpan, AsyncCallback, Object)Begins an asynchronous operation to update instance state information in the persistence store using the parameters passed. This operation does not unlock the instance in the instance store. (Overrides PersistenceProvider.BeginUpdate(Object, TimeSpan, AsyncCallback, Object).)
Public methodBeginUpdate(Object, TimeSpan, Boolean, AsyncCallback, Object)Begins an asynchronous operation to update instance state information in the persistence store using the parameters passed. This operation locks the instance in the persistence store if the value of the unlockInstance parameter is true.
Public methodClose()Causes a communication object to transition from its current state into the closed state. (Inherited from CommunicationObject.)
Public methodClose(TimeSpan)Causes a communication object to transition from its current state into the closed state within a specified interval of time. (Inherited from CommunicationObject.)
Public methodCreate(Object, TimeSpan)Creates instance state information in the persistence store using parameters passed into the method. This method does not unlock the instance in the persistence store after saving the instance state. (Overrides PersistenceProvider.Create(Object, TimeSpan).)
Public methodCreate(Object, TimeSpan, Boolean)This method creates instance state information in the persistence store using parameters passed into the method. The method unlocks the instance in the instance store if the value of the unlockInstance parameter is true.
Public methodDeleteWhen implemented in a derived class, permanently deletes service state information from the persistence store. (Inherited from PersistenceProvider.)
Public methodEndCloseCompletes an asynchronous operation to close a communication object. (Inherited from CommunicationObject.)
Public methodEndCreateWhen implemented in a derived class, represents the end of the Create phase. The Create phase occurs when service state records are first created in the persistence store. (Inherited from PersistenceProvider.)
Public methodEndDeleteWhen implemented in a derived class, represents the end of the Delete phase. The Delete phase occurs when state data is permanently deleted from the persistence store. (Inherited from PersistenceProvider.)
Public methodEndLoadWhen implemented in a derived class, represents the end of the Load phase. The Load phase occurs when state data is loaded into the persistence provider from the persistence store. (Inherited from PersistenceProvider.)
Public methodEndLoadIfChangedWhen implemented in a derived class, represents the end of the LoadIfChanged phase. The LoadIfChanged phase occurs when state data is loaded into the persistence provider from the persistence store, and the state data in the persistence store has been changed. (Inherited from PersistenceProvider.)
Public methodEndOpenCompletes an asynchronous operation to open a communication object. (Inherited from CommunicationObject.)
Public methodEndUnlockEnds the asynchronous operation to unlock an instance in the persistence store.
Public methodEndUpdateRepresents the end of the Update phase. The Update phase occurs when service state records are updated in the persistence store. (Inherited from PersistenceProvider.)
Public methodEquals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFaultCauses a communication object to transition from its current state into the faulted state. (Inherited from CommunicationObject.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Protected methodGetCommunicationObjectTypeGets the type of communication object. (Inherited from CommunicationObject.)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodLoad(TimeSpan)Loads service state information from the persistence store without locking the instance. (Overrides PersistenceProvider.Load(TimeSpan).)
Public methodLoad(TimeSpan, Boolean)Loads state information from the persistence store after locking the instance.
Public methodLoadIfChanged(TimeSpan, Object, Object)Loads the instance state information from the persistence store if the state information has been changed since the last time the information was loaded by the caller. This method does not lock the instance in the persistence store. (Overrides PersistenceProvider.LoadIfChanged(TimeSpan, Object, Object).)
Public methodLoadIfChanged(TimeSpan, Object, Boolean, Object)Loads the instance state information from the persistence store if the state information has been changed since the last time the information was loaded by the caller. This method also lets the caller specify whether to lock the instance in the persistence store.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Protected methodOnAbortInserts processing on a communication object after it transitions to the closing state due to the invocation of a synchronous abort operation. (Inherited from CommunicationObject.)
Protected methodOnBeginCloseInserts processing after a communication object transitions to the closing state due to the invocation of an asynchronous close operation. (Inherited from CommunicationObject.)
Protected methodOnBeginOpenInserts processing on a communication object after it transitions to the opening state due to the invocation of an asynchronous open operation. (Inherited from CommunicationObject.)
Protected methodOnCloseInserts processing on a communication object after it transitions to the closing state due to the invocation of a synchronous close operation. (Inherited from CommunicationObject.)
Protected methodOnClosedInvoked during the transition of a communication object into the closing state. (Inherited from CommunicationObject.)
Protected methodOnClosingInvoked during the transition of a communication object into the closing state. (Inherited from CommunicationObject.)
Protected methodOnEndCloseCompletes an asynchronous operation on the close of a communication object. (Inherited from CommunicationObject.)
Protected methodOnEndOpenCompletes an asynchronous operation on the open of a communication object. (Inherited from CommunicationObject.)
Protected methodOnFaultedInserts processing on a communication object after it transitions to the faulted state due to the invocation of a synchronous fault operation. (Inherited from CommunicationObject.)
Protected methodOnOpenInserts processing on a communication object after it transitions into the opening state which must complete within a specified interval of time. (Inherited from CommunicationObject.)
Protected methodOnOpenedInvoked during the transition of a communication object into the opened state. (Inherited from CommunicationObject.)
Protected methodOnOpeningInvoked during the transition of a communication object into the opening state. (Inherited from CommunicationObject.)
Public methodOpen()Causes a communication object to transition from the created state into the opened state. (Inherited from CommunicationObject.)
Public methodOpen(TimeSpan)Causes a communication object to transition from the created state into the opened state within a specified interval of time. (Inherited from CommunicationObject.)
Protected methodThrowIfDisposedThrows an exception if the communication object is disposed. (Inherited from CommunicationObject.)
Protected methodThrowIfDisposedOrImmutableThrows an exception if the communication object the State property is not set to the Created state. (Inherited from CommunicationObject.)
Protected methodThrowIfDisposedOrNotOpenThrows an exception if the communication object is not in the Opened state. (Inherited from CommunicationObject.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Public methodUnlockUnlocks the instance whose ID is specified when constructing the LockingPersistenceProvider object in the persistence store.
Public methodUpdate(Object, TimeSpan)When implemented in a derived class, updates the instance state information in the persistence store. This method does not unlock the instance after updating the instance state information in the persistence store. (Overrides PersistenceProvider.Update(Object, TimeSpan).)
Public methodUpdate(Object, TimeSpan, Boolean)When implemented in a derived class, updates the instance state information in the persistence store. This method does not unlock the instance after updating the instance state information in the persistence store.
Top

  NameDescription
Public eventClosedOccurs when a communication object transitions into the closed state. (Inherited from CommunicationObject.)
Public eventClosingOccurs when a communication object transitions into the closing state. (Inherited from CommunicationObject.)
Public eventFaultedOccurs when a communication object transitions into the faulted state. (Inherited from CommunicationObject.)
Public eventOpenedOccurs when a communication object transitions into the opened state. (Inherited from CommunicationObject.)
Public eventOpeningOccurs when a communication object transitions into the opening state. (Inherited from CommunicationObject.)
Top

In addition to persistence, the LockingPersistenceProvider class implements locking of service state data records. Methods that interact with persisted data (such as the Load method) have an optional parameter (lockInstance) that defines whether locks on the data in question are released or maintained.

.NET Framework

Supported in: 4, 3.5

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.

Community Additions

ADD
Show:
© 2015 Microsoft