当前位置: 首页>>代码示例>>C#>>正文


C# Entities.ToXML方法代码示例

本文整理汇总了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);
 }
开发者ID:PCIBooking,项目名称:pciBooking-.NET-Source-Code,代码行数:15,代码来源:BankCards.cs

示例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);
 }
开发者ID:PCIBooking,项目名称:pciBooking-.NET-Source-Code,代码行数:13,代码来源:Payments.cs


注:本文中的Entities.ToXML方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。