C# Class System.Transactions.TransactionInterop

Show file Open project: dotnet/corefx Class Usage Examples

Public Properties

Property Type Description
PromoterTypeDtc Guid
PromoterTypeDtc System.Guid

Public Methods

Method Description
GetDtcTransaction ( Transaction transaction ) : IDtcTransaction
GetDtcTransaction ( System transaction ) : System.Transactions.IDtcTransaction
GetExportCookie ( System transaction, byte whereabouts ) : byte[]
GetExportCookie ( Transaction transaction, byte whereabouts ) : byte[]
GetTransactionFromDtcTransaction ( System transactionNative ) : System.Transactions.Transaction
GetTransactionFromDtcTransaction ( IDtcTransaction transactionNative ) : Transaction
GetTransactionFromExportCookie ( byte cookie ) : System.Transactions.Transaction
GetTransactionFromExportCookie ( byte cookie ) : Transaction
GetTransactionFromTransmitterPropagationToken ( byte propagationToken ) : System.Transactions.Transaction
GetTransactionFromTransmitterPropagationToken ( byte propagationToken ) : Transaction
GetTransmitterPropagationToken ( System transaction ) : byte[]
GetTransmitterPropagationToken ( Transaction transaction ) : byte[]
GetWhereabouts ( ) : byte[]

Private Methods

Method Description
ConvertToDistributedTransaction ( Transaction transaction ) : DistributedTransaction
GetDistributedTransactionFromTransmitterPropagationToken ( byte propagationToken ) : DistributedTransaction

Method Details

GetDtcTransaction() public static method

public static GetDtcTransaction ( Transaction transaction ) : IDtcTransaction
transaction Transaction
return IDtcTransaction

GetDtcTransaction() public static method

public static GetDtcTransaction ( System transaction ) : System.Transactions.IDtcTransaction
transaction System
return System.Transactions.IDtcTransaction

GetExportCookie() public static method

public static GetExportCookie ( System transaction, byte whereabouts ) : byte[]
transaction System
whereabouts byte
return byte[]

GetExportCookie() public static method

public static GetExportCookie ( Transaction transaction, byte whereabouts ) : byte[]
transaction Transaction
whereabouts byte
return byte[]

GetTransactionFromDtcTransaction() public static method

public static GetTransactionFromDtcTransaction ( System transactionNative ) : System.Transactions.Transaction
transactionNative System
return System.Transactions.Transaction

GetTransactionFromDtcTransaction() public static method

public static GetTransactionFromDtcTransaction ( IDtcTransaction transactionNative ) : Transaction
transactionNative IDtcTransaction
return Transaction

GetTransactionFromExportCookie() public static method

public static GetTransactionFromExportCookie ( byte cookie ) : System.Transactions.Transaction
cookie byte
return System.Transactions.Transaction

GetTransactionFromExportCookie() public static method

public static GetTransactionFromExportCookie ( byte cookie ) : Transaction
cookie byte
return Transaction

GetTransactionFromTransmitterPropagationToken() public static method

public static GetTransactionFromTransmitterPropagationToken ( byte propagationToken ) : System.Transactions.Transaction
propagationToken byte
return System.Transactions.Transaction

GetTransactionFromTransmitterPropagationToken() public static method

public static GetTransactionFromTransmitterPropagationToken ( byte propagationToken ) : Transaction
propagationToken byte
return Transaction

GetTransmitterPropagationToken() public static method

public static GetTransmitterPropagationToken ( System transaction ) : byte[]
transaction System
return byte[]

GetTransmitterPropagationToken() public static method

public static GetTransmitterPropagationToken ( Transaction transaction ) : byte[]
transaction Transaction
return byte[]

GetWhereabouts() public static method

public static GetWhereabouts ( ) : byte[]
return byte[]

Property Details

PromoterTypeDtc public static property

This is the PromoterType value that indicates that the transaction is promoting to MSDTC. If using the variation of Transaction.EnlistPromotableSinglePhase that takes a PromoterType and the ITransactionPromoter being used promotes to MSDTC, then this is the value that should be specified for the PromoterType parameter to EnlistPromotableSinglePhase. If using the variation of Transaction.EnlistPromotableSinglePhase that assumes promotion to MSDTC and it that returns false, the caller can compare this value with Transaction.PromoterType to verify that the transaction promoted, or will promote, to MSDTC. If the Transaction.PromoterType matches this value, then the caller can continue with its enlistment with MSDTC. But if it does not match, the caller will not be able to enlist with MSDTC.
public static Guid PromoterTypeDtc
return Guid

PromoterTypeDtc public static property

public static System.Guid PromoterTypeDtc
return System.Guid