DurableOperationContext 类
定义
注意
The WF3 types are deprecated. Instead, please use the new WF4 types from System.Activities.*
提供一组静态方法以获取对相关信息和功能的访问。Provides a set of static methods to gain access to related information and functionality.
public ref class DurableOperationContext abstract sealed
public static class DurableOperationContext
[System.Obsolete("The WF3 types are deprecated. Instead, please use the new WF4 types from System.Activities.*")]
public static class DurableOperationContext
type DurableOperationContext = class
[<System.Obsolete("The WF3 types are deprecated. Instead, please use the new WF4 types from System.Activities.*")>]
type DurableOperationContext = class
Public Class DurableOperationContext
- 继承
-
DurableOperationContext
- 属性
属性
| InstanceId |
获取此服务实例的服务 ID。Gets the service ID of this service instance. |
方法
| AbortInstance() |
操作完成后从内存中清除当前持久性服务实例。Purges the current durable service instance from memory after the operation has completed. |
| CompleteInstance() |
操作完成后将持久性服务实例从内存中卸载并将其从永久性存储区中删除。Unloads the durable service instance from memory and deletes it from persistence after the operation has completed. |