Transaction.PromoteAndEnlistDurable Metoda

Definicja

Promuje i enlistuje trwały menedżer zasobów, który obsługuje dwa zatwierdzenia fazy, aby uczestniczyć w transakcji.

public:
 System::Transactions::Enlistment ^ PromoteAndEnlistDurable(Guid resourceManagerIdentifier, System::Transactions::IPromotableSinglePhaseNotification ^ promotableNotification, System::Transactions::ISinglePhaseNotification ^ enlistmentNotification, System::Transactions::EnlistmentOptions enlistmentOptions);
public System.Transactions.Enlistment PromoteAndEnlistDurable (Guid resourceManagerIdentifier, System.Transactions.IPromotableSinglePhaseNotification promotableNotification, System.Transactions.ISinglePhaseNotification enlistmentNotification, System.Transactions.EnlistmentOptions enlistmentOptions);
member this.PromoteAndEnlistDurable : Guid * System.Transactions.IPromotableSinglePhaseNotification * System.Transactions.ISinglePhaseNotification * System.Transactions.EnlistmentOptions -> System.Transactions.Enlistment
Public Function PromoteAndEnlistDurable (resourceManagerIdentifier As Guid, promotableNotification As IPromotableSinglePhaseNotification, enlistmentNotification As ISinglePhaseNotification, enlistmentOptions As EnlistmentOptions) As Enlistment

Parametry

resourceManagerIdentifier
Guid

Unikatowy identyfikator menedżera zasobów, który powinien być utrwalany w przypadku awarii lub ponownego uruchomienia usługi Resource Manager.

promotableNotification
IPromotableSinglePhaseNotification

Obiekt, który działa jako delegat zatwierdzenia dla transakcji nieprostrybucyjnej wewnętrznej dla menedżera zasobów.

enlistmentNotification
ISinglePhaseNotification

Obiekt, który implementuje IEnlistmentNotification interfejs do odbierania powiadomień o zatwierdzaniu dwóch faz.

enlistmentOptions
EnlistmentOptions

EnlistDuringPrepareRequired jeśli menedżer zasobów chce wykonać dodatkową pracę w fazie przygotowania.

Zwraca

Dotyczy