Export (0) Print
Expand All

CompensationExtension Class

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

System.Object
  System.Activities.Persistence.PersistenceParticipant
    System.Activities.Statements.CompensationExtension

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

type CompensationExtension =  
    class 
        inherit PersistenceParticipant 
        interface IWorkflowInstanceExtension 
    end

The CompensationExtension type exposes the following members.

  NameDescription
Public methodCompensationExtensionInitializes a new instance of the CompensationExtension class.
Top

  NameDescription
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.)
Top

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

.NET Framework

Supported in: 4.5.3

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2014 Microsoft