System.Runtime.DurableInstancing 命名空间

此命名空间包含 Windows Communication Foundation (WCF) 基础结构用来实现永久性提供程序的类。 This namespace contains classes that are used by the Windows Communication Foundation (WCF) infrastructure to implement a persistence provider.

InstanceCollisionException

在永久性提供程序期望某个实例处于未初始化状态,但该实例并不处于未初始化状态时,永久性提供程序会引发此异常。A persistence provider throws this exception when it expects an instance to be in an uninitialized state but the instance is not in that state.

InstanceCompleteException

在永久性提供程序期望找到处于已初始化状态的实例,但找到处于已完成状态的实例时,永久性提供程序会引发此异常。A persistence provider throws this exception when it expects to find an instance in the initialized state, but finds the instance is in the completed state.

InstanceHandle

表示指向 InstanceView 对象的句柄。Represents a handle to InstanceView object.

InstanceHandleConflictException

在永久性提供程序尝试通过将实例句柄绑定到实例锁定来获取对某个实例的写入访问权限,但已存在具有该实例写入访问权限的实例句柄时,永久性提供程序会引发此异常。A persistence provider throws this exception when it tries to acquire write access to an instance by binding an instance handle to an instance lock, when an instance handle with write access to that instance already exists.

InstanceKey

表示一个实例键,并包含与此实例键关联的标识符和元数据。Represents an instance key and contains an identifier and metadata associated with the instance key. 实例键可用作实例的非唯一别名。An instance key acts as a non-unique alias for an instance.

InstanceKeyCollisionException

在永久性提供程序期望找到处于非关联状态的实例键,但找到处于不同状态的实例键时,永久性提供程序会引发此异常。A persistence provider throws this exception when it expects to find an instance key in the unassociated state, but finds the key in a different state.

InstanceKeyCompleteException

在永久性提供程序期望找到处于关联状态的实例键,但找到处于已完成状态的实例键时,永久性提供程序会引发此异常。A persistence provider throws this exception when it expects to find an instance key in the associated state but finds the key in the completed state.

InstanceKeyNotReadyException

在永久性提供程序期望找到处于关联状态的实例键,但找到处于非关联状态的实例键时,永久性提供程序会引发此异常。A persistence provider throws this exception when it expects to find an instance key in the associated state, but finds the key in the unassociated state.

InstanceKeyView

提供显示实例键信息的视图。Provides a view into instance key information.

InstanceLockedException

如果由于某个实例已被另一个所有者锁定,因此当永久性提供程序无法获取对该实例的锁定就会引发此异常。A persistence provider throws this exception when it is unable to acquire a lock on an instance because the instance is already locked by another owner.

InstanceLockLostException

如果由于对此实例的锁定与执行此命令所针对的实例句柄关联的锁定不匹配而导致永久性提供程序无法执行此命令,则此永久性提供程序会引发此异常。A persistence provider throws this exception when it cannot perform the command because the lock on the instance does not match the lock associated with the instance handle against which the command was executed. 所有者或版本不匹配。Either the owner or the version does not match.

InstanceLockQueryResult

包含由实例的 ID 字典表示的查询结果集和当前拥有对每个实例的锁定的实例所有者。Contains query result set represented by a dictionary of ID of instance and the instance owner which currently owns the lock on each instance.

InstanceNotReadyException

在永久性提供程序期望找到处于已初始化状态的实例但找到处于未初始化状态的实例时,永久性提供程序会引发此异常。A persistence provider throws this exception when it expects to find an instance in an initialized state, but finds the instance in an uninitialized state.

InstanceOwner

表示实例存储区中的一个实例的所有者。Represents the owner of an instance in the instance store. 实例所有者是在实例存储区中具有实例的交互参与者。An instance owner is an interaction participant with an instance in the instance store.

InstanceOwnerException

在绑定到实例句柄的实例所有者变成无效时,永久性提供程序会引发此异常。A persistence provider throws this exception when the instance owner bound to the instance handle has become invalid.

InstanceOwnerQueryResult

包含一个查询结果集,由与从永久性存储区检索到的一个或多个实例所有者关联的元数据组成。Contains a query result set consisting of metadata associated with an instance owner or instance owners that are retrieved from a persistence store.

InstancePersistenceCommand

所有与永久性相关的命令的基类。Base class for all persistence related commands. 可根据其名称识别命令。Commands are distinguished by their Name. 通常,也可根据其派生类型识别命令。Usually commands can also be distinguished by their derived type.

InstancePersistenceCommandException

如果在处理永久性命令时出现错误,永久性提供程序会引发此异常。A persistence provider throws this exception when an error occurs while processing a persistence command. 如果此错误会扩展到实例句柄的将来使用中,则永久性提供程序还可能会释放执行此命令所针对的实例句柄。The persistence provider may also free the instance handle against which the command was executed if the error would extend to future uses of the instance handle.

InstancePersistenceContext

表示在执行永久性命令时的执行状态信息。Represents execution state information while a persistence command is being executed.

InstancePersistenceEvent

表示某个实例存储区引发的用于通知主机有关情况的事件。Represents an event that an instance store raises to notify hosts about a condition. 示例:HasRunnableWorkflowEventHasActivatableWorkflowEventExamples: HasRunnableWorkflowEvent and HasActivatableWorkflowEvent.

InstancePersistenceEvent<T>

表示某个实例存储区引发的用于通知主机有关更改的事件。Represents an event that an instance store raises to notify hosts about a change. 这是一个泛型类。This is a generic class. 从此类派生的类,如 HasRunnableWorkflowEventHasActivatableWorkflowEventClasses such as HasRunnableWorkflowEvent and HasActivatableWorkflowEvent derive from this class.

InstancePersistenceException

所有与永久性相关的异常类的基类。Base class for all the persistence related exception classes. InstanceOwnerExceptionInstancePersistenceCommandException 是此类的派生类。The InstanceOwnerException and the InstancePersistenceCommandException are derived classes of this class.

InstanceStore

表示一个实例存储区。Represents an instance store.

InstanceStoreQueryResult

支持用于从实例存储区提供数据的可扩展机制。Supports an extensible mechanism to provide data from an instance store. 这些数据包括有关实例、实例所有者和实例键的数据,而不是绑定到正在使用中的实例句柄的那些数据。This includes data for instances, instance owners, and instance keys other than those bound to the instance handle being used. 例如,永久性提供程序可以通过将从 InstanceStoreQueryResult 派生的类的实例传递到 QueriedInstanceStore(InstanceStoreQueryResult) 方法,为存储区中的所有实例所有者提供所有者元数据。For example, a persistence provider may provide the owner metadata for all the instance owners in the store by passing an instance of a class derived from InstanceStoreQueryResult to the QueriedInstanceStore(InstanceStoreQueryResult) method.

InstanceValue

存储有关实例数据和元数据的信息。Stores the information about instance data and metadata.

InstanceView

表示一个实例视图。Represents a view of an instance. 例如,Execute(InstanceHandle, InstancePersistenceCommand, TimeSpan) 方法实现可返回一个 InstanceView 对象,该对象提供显示永久性存储区中的实例数据的视图。For example, the Execute(InstanceHandle, InstancePersistenceCommand, TimeSpan) method implementations return an InstanceView object that provides a view into the instance data in the persistence store.

枚举

InstanceKeyState

包含实例键的有效状态的列表。Contains a list of valid states for instance keys.

InstanceState

此枚举包含一个实例状态的列表。This enumeration contains a list of states of an instance.

InstanceValueConsistency

描述指定的字典中包含的实例值的一致性保证。Describes the consistency guarantee of the instance values contained in a specified dictionary.

InstanceValueOptions

包含实例值的选项,用于指示实例值是只写、可选还是没有实例值。Contains options for instance values to indicate whether the instance values are write-only, optional, there are no instance values.