Transaction.EnlistDurable 메서드

정의

지속성 리소스 관리자를 등록하여 트랜잭션에 참여합니다.

오버로드

Name Description
EnlistDurable(Guid, IEnlistmentNotification, EnlistmentOptions)

트랜잭션에 참여하도록 2단계 커밋을 지원하는 지속성 리소스 관리자를 등록합니다.

EnlistDurable(Guid, ISinglePhaseNotification, EnlistmentOptions)

트랜잭션에 참여하도록 단일 단계 커밋 최적화를 지원하는 지속성 리소스 관리자를 등록합니다.

설명

메모

이 메서드는 신뢰할 수 없는 코드에서 호출되는 것을 방지하는 데 사용 LinkDemand 되지만 권한 집합을 소유 FullTrust 하려면 직접 호출자만 필요합니다.

EnlistDurable(Guid, IEnlistmentNotification, EnlistmentOptions)

Source:
Transaction.cs
Source:
Transaction.cs
Source:
Transaction.cs
Source:
Transaction.cs
Source:
Transaction.cs

트랜잭션에 참여하도록 2단계 커밋을 지원하는 지속성 리소스 관리자를 등록합니다.

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

매개 변수

resourceManagerIdentifier
Guid

리소스 관리자 오류 또는 다시 부팅 간에 유지되어야 하는 리소스 관리자에 대한 고유 식별자입니다.

enlistmentNotification
IEnlistmentNotification

2단계 커밋 알림을 수신하는 인터페이스를 구현 IEnlistmentNotification 하는 개체입니다.

enlistmentOptions
EnlistmentOptions

EnlistDuringPrepareRequired 리소스 관리자가 준비 단계 중에 추가 작업을 수행하려고 하면 입니다.

반품

Enlistment 인리스트먼트를 설명하는 개체입니다.

설명

지속적인 인리스트먼트가 있는 리소스 관리자는 오류가 발생하는 경우 복구를 수행할 수 있어야 합니다. 복구에 대한 자세한 내용은 복구 수행을 참조하세요. 휘발성 및 지속성 리소스에 대한 자세한 내용과 리소스를 등록하는 방법은 Resource Manager을 참조하세요. 리소스 관리자가 커밋 알림에 응답하고 2단계 커밋에서 커밋을 준비하는 방법에 대한 자세한 내용은 Single-Phase 및 다단계에서 트랜잭션 커밋을 참조하세요.

이 메서드를 통해 트랜잭션에 참여하도록 등록한 리소스 관리자는 인터페이스에 정의된 메서드에 해당하는 2단계 커밋 알림을 받습니다 IEnlistmentNotification .

적용 대상

EnlistDurable(Guid, ISinglePhaseNotification, EnlistmentOptions)

Source:
Transaction.cs
Source:
Transaction.cs
Source:
Transaction.cs
Source:
Transaction.cs
Source:
Transaction.cs

트랜잭션에 참여하도록 단일 단계 커밋 최적화를 지원하는 지속성 리소스 관리자를 등록합니다.

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

매개 변수

resourceManagerIdentifier
Guid

리소스 관리자 오류 또는 다시 부팅 간에 유지되어야 하는 리소스 관리자에 대한 고유 식별자입니다.

singlePhaseNotification
ISinglePhaseNotification

단일 단계 커밋 및 2단계 커밋 알림을 받을 수 있어야 하는 인터페이스를 구현 ISinglePhaseNotification 하는 개체입니다.

enlistmentOptions
EnlistmentOptions

EnlistDuringPrepareRequired 리소스 관리자가 준비 단계 중에 추가 작업을 수행하려고 하면 입니다.

반품

Enlistment 인리스트먼트를 설명하는 개체입니다.

설명

지속적인 인리스트먼트가 있는 리소스 관리자는 오류가 발생하는 경우 복구를 수행할 수 있어야 합니다. 복구에 대한 자세한 내용은 복구 수행을 참조하세요. 휘발성 및 지속성 리소스에 대한 자세한 내용과 리소스를 등록하는 방법은 Resource Manager을 참조하세요.

리소스 관리자 구현이 이 메서드에 참여하더라도 단일 단계 커밋을 수신한다고 보장되지는 않습니다. 트랜잭션 관리자는 2단계 커밋 알림을 대신 보낼 수 있습니다. 단일 단계 커밋 최적화에 대한 자세한 내용은 단일 단계 커밋 및 승격 가능한 단일 단계 알림을 사용하여 최적화를 참조하세요.

적용 대상