Прочетете на английски Редактиране

Споделяне чрез


DurableOperationContext Class

Definition

Caution

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.

C#
public static class DurableOperationContext
C#
[System.Obsolete("The WF3 types are deprecated.  Instead, please use the new WF4 types from System.Activities.*")]
public static class DurableOperationContext
Inheritance
DurableOperationContext
Attributes

Properties

InstanceId

Gets the service ID of this service instance.

Methods

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.

Applies to

Продукт Версии (остаряло)
.NET Framework 3.5, 4.0 (4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1)