CompensationExtension Class

.NET Framework 4.6 and 4.5

Represents an extension that hooks up with compensation activities and persists compensation-related instance state.


Namespace:  System.Activities.Statements
Assembly:  System.Activities (in System.Activities.dll)

type CompensationExtension =  
        inherit PersistenceParticipant 
        interface IWorkflowInstanceExtension 

The CompensationExtension type exposes the following members.

Public methodCompensationExtensionInitializes a new instance of the CompensationExtension class.

Protected methodCollectValuesCalled by the host to collect read-write values and write-only values related to compensation to be persisted. (Overrides PersistenceParticipant.CollectValues(IDictionary(XName, Object), IDictionary(XName, Object)).)
Public methodEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMapValuesA host invokes this method after it is done with collecting the values in the first stage. The host forwards two read-only dictionaries of values it collected from all persistence participants during the first stage (CollectValues stage) to this method for mapping. The host adds values in the dictionary returned by this method to the collection of write-only values. (Inherited from PersistenceParticipant.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Protected methodPublishValuesCalled by the host to pass all of the loaded values related to compensation that were part of the most recent persistence episode. (Overrides PersistenceParticipant.PublishValues(IDictionary(XName, Object)).)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)

Explicit interface implemetationPrivate methodIWorkflowInstanceExtension.GetAdditionalExtensionsReturns any additional extensions to compensation activities.
Explicit interface implemetationPrivate methodIWorkflowInstanceExtension.SetInstanceSets any additional extensions to compensation activities.

.NET Framework

Supported in: 4.6, 4.5

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft