Bewerken

Delen via


CompensationExtension Class

Definition

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

public ref class CompensationExtension : System::Activities::Persistence::PersistenceParticipant, System::Activities::Hosting::IWorkflowInstanceExtension
public class CompensationExtension : System.Activities.Persistence.PersistenceParticipant, System.Activities.Hosting.IWorkflowInstanceExtension
type CompensationExtension = class
    inherit PersistenceParticipant
    interface IWorkflowInstanceExtension
Public Class CompensationExtension
Inherits PersistenceParticipant
Implements IWorkflowInstanceExtension
Inheritance
CompensationExtension
Implements

Constructors

CompensationExtension()

Initializes a new instance of the CompensationExtension class.

Methods

CollectValues(IDictionary<XName,Object>, IDictionary<XName,Object>)

Called by the host to collect read-write values and write-only values related to compensation to be persisted.

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MapValues(IDictionary<XName,Object>, IDictionary<XName,Object>)

A 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)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
PublishValues(IDictionary<XName,Object>)

Called by the host to pass all of the loaded values related to compensation that were part of the most recent persistence episode.

ToString()

Returns a string that represents the current object.

(Inherited from Object)

Explicit Interface Implementations

IWorkflowInstanceExtension.GetAdditionalExtensions()

Returns any additional extensions to compensation activities.

IWorkflowInstanceExtension.SetInstance(WorkflowInstanceProxy)

Sets any additional extensions to compensation activities.

Applies to