System.EnterpriseServices.CompensatingResourceManager 命名空间

System.EnterpriseServices.CompensatingResourceManager 命名空间提供各种类,通过它们您可以在托管代码中使用补偿资源管理器 (CRM)。 The System.EnterpriseServices.CompensatingResourceManager namespace provides classes that allow you to use a Compensating Resource Manager (CRM) in managed code. CRM 是由 COM+ 提供的一项服务,它使您可以在 Microsoft 分布式事务处理协调器 (DTC) 事务中包括非事务性对象。 A CRM is a service provided by COM+ that enables you to include non transactional objects in Microsoft Distributed Transaction Coordinator (DTC) transactions. 虽然 CRM 不提供完整资源管理器的功能,但它们却通过恢复日志提供事务性原子性(全有或全无行为)和持久性。 Although CRMs do not provide the capabilities of a full resource manager, they do provide transactional atomicity (all or nothing behavior) and durability through the recovery log.

ApplicationCrmEnabledAttribute

在标记的应用程序上启用补偿资源管理器 (CRM)。Enables Compensating Resource Manger (CRM) on the tagged application.

Clerk

将事务性操作的记录写入日志。Writes records of transactional actions to a log.

ClerkInfo

包含描述活动补偿资源管理器 (CRM) Clerk 对象的信息。Contains information describing an active Compensating Resource Manager (CRM) Clerk object.

ClerkMonitor

包含进程中所有处于活动状态的 Clerk 的快照。Contains a snapshot of all Clerks active in the process.

Compensator

表示所有补偿资源管理器 (CRM) 补偿器的基类。Represents the base class for all Compensating Resource Manager (CRM) Compensators.

LogRecord

表示作为 COM+ CrmLogRecordRead 结构传递的未结构化的日志记录。Represents an unstructured log record delivered as a COM+ CrmLogRecordRead structure. 此类不能被继承。This class cannot be inherited.

枚举

CompensatorOptions

指定一些标志,这些标志控制补偿资源管理器 (CRM) 补偿器应接收事务完成的哪些阶段,并且这些标志控制如果有问题的事务在尝试恢复后问题仍未解决则恢复是否应失败。Specifies flags that control which phases of transaction completion should be received by the Compensating Resource Manager (CRM) Compensator, and whether recovery should fail if questionable transactions remain after recovery has been attempted.

LogRecordFlags

描述补偿资源管理器 (CRM) 日志记录的来源。Describes the origin of a Compensating Resource Manager (CRM) log record.

TransactionState

指定当前补偿资源管理器 (CRM) 事务的状态。Specifies the state of the current Compensating Resource Manager (CRM) transaction.

注解

有关使用 CRM 的信息,请参阅如何: 创建补偿资源管理器 (CRM)For information about using CRM, see How to: Create a Compensating Resource Manager (CRM) .