本文整理汇总了C#中Entities.ToXML方法的典型用法代码示例。如果您正苦于以下问题:C# Entities.ToXML方法的具体用法?C# Entities.ToXML怎么用?C# Entities.ToXML使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Entities
的用法示例。
在下文中一共展示了Entities.ToXML方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: PutCardDetailsAsync
/// <summary>
/// Asynchronously Put a payment Info object from XML with possible association to a merchant
/// </summary>
/// <param name="bc">Bank card object</param>
/// <param name="creatorReference">On optional value to be used by the sender for future reference</param>
/// <param name="saveCVV">Whether to save the Security code with the card</param>
/// <param name="merchantId">Optional value allowing access to the given merchant Id (pciBooking user Id of the hotel)</param>
/// <param name="storeMode">Where to store the card data</param>
/// <param name="userData">User data (piggyback)</param>
/// <param name="ct">Cancelation token</param>
/// <param name="callback">callback method to invoke upon completion. Will be invoked also after cancelation</param>
public void PutCardDetailsAsync(Entities.BankCardDetails bc, string creatorReference, bool saveCVV, string merchantId, StoreMode storeMode, Object userData, CancellationToken ct, Action<Entities.Result<Uri>> callback)
{
PutCardDetailsAsync(bc.ToXML(true), creatorReference, saveCVV, merchantId, storeMode, userData, ct, callback);
}
示例2: PutPaymentInfoAsync
/// <summary>
/// Asynchronously Put a payment Info object from XML with possible association to a merchant
/// </summary>
/// <param name="bc">Bank card object</param>
/// <param name="creatorReference">On optional value to be used by the sender for future reference</param>
/// <param name="merchantId">Optional value allowing access to the given merchant Id (pciBooking user Id of the hotel)</param>
/// <param name="userData">User data (piggyback)</param>
/// <param name="ct">Cancelation token</param>
/// <param name="callback">callback method to invoke upon completion. Will be invoked also after cancelation</param>
public void PutPaymentInfoAsync(Entities.PaymentInfo bc, string creatorReference, string merchantId, Object userData, CancellationToken ct, Action<Entities.Result<Uri>> callback)
{
PutPaymentInfoAsync(bc.ToXML(), creatorReference, merchantId, userData, ct, callback);
}