Compensator.EndPrepare Metodo

Definizione

Notifica alla classe Compensator CRM (Compensating Resource Manager) che ha ricevuto tutti i record disponibili durante la fase di preparazione.

public:
 virtual bool EndPrepare();
public virtual bool EndPrepare ();
abstract member EndPrepare : unit -> bool
override this.EndPrepare : unit -> bool
Public Overridable Function EndPrepare () As Boolean

Restituisce

true se riesce. In caso contrario, false.

Esempio

Nell'esempio di codice seguente viene illustrata l'implementazione di questo metodo.

public:
    virtual bool EndPrepare() override
    {
        // Allow the transaction to proceed onlyif we have received a prepare
        // record.
        if (receivedPrepareRecord)
        {
            return true;
        }
        else
        {
            return false;
        }
    }
public override bool EndPrepare ()
{
    // Allow the transaction to proceed onlyif we have received a prepare record.
    if (receivedPrepareRecord)
    {
        return(true);
    }
    else
    {
        return(false);
    }
}
Public Overrides Function EndPrepare() As Boolean 
    ' Allow the transaction to proceed onlyif we have received a prepare record.
    If receivedPrepareRecord Then
        Return True
    Else
        Return False
    End If

End Function 'EndPrepare

Si applica a