Compensator.EndPrepare Method

Definition

Notifies the Compensating Resource Manager (CRM) Compensator that it has had all the log records available during the prepare phase.

C#
public virtual bool EndPrepare();

Returns

true if successful; otherwise, false.

Examples

The following code example demonstrates the implementation of this method.

C#
public override bool EndPrepare ()
{
    // Allow the transaction to proceed onlyif we have received a prepare record.
    if (receivedPrepareRecord)
    {
        return(true);
    }
    else
    {
        return(false);
    }
}

Applies to

Proizvod Verzije
.NET Framework 1.1, 2.0, 3.0, 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