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


C# PreparingEnlistment.Done方法代码示例

本文整理汇总了C#中System.Transactions.PreparingEnlistment.Done方法的典型用法代码示例。如果您正苦于以下问题:C# PreparingEnlistment.Done方法的具体用法?C# PreparingEnlistment.Done怎么用?C# PreparingEnlistment.Done使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在System.Transactions.PreparingEnlistment的用法示例。


在下文中一共展示了PreparingEnlistment.Done方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Prepare

 public void Prepare(PreparingEnlistment preparingEnlistment)
 {
     lock (_sharedLock)
     {
         if (PrepareCommitAction != null) PrepareCommitAction();
     }
     preparingEnlistment.Done();
 }
开发者ID:PaulStovell,项目名称:bindable,代码行数:8,代码来源:TransactionStep.cs

示例2: Prepare

 public void Prepare(PreparingEnlistment preparingEnlistment)
 {
     if (commit)
     {
         preparingEnlistment.Prepared();
     }
     else
     {
         preparingEnlistment.ForceRollback();
         // Rollback is not called after 'Rollback' vote
         this.WasRollback = true;
         preparingEnlistment.Done();
     }
 }
开发者ID:CedricDumont,项目名称:NMemory.Next,代码行数:14,代码来源:FakeEnlistmentNotification.cs

示例3: Prepare

 public void Prepare(PreparingEnlistment preparingEnlistment)
 {
     preparingEnlistment.Done();
 }
开发者ID:vc3,项目名称:Amnesia,代码行数:4,代码来源:Session.cs

示例4: Prepare

 public void Prepare(PreparingEnlistment preparingEnlistment)
 {
     Neo4jTransaction.DoKeepAlive(_transactionExecutionEnvironment);
     preparingEnlistment.Done();
 }
开发者ID:Readify,项目名称:Neo4jClient,代码行数:5,代码来源:Neo4jTransactionResourceManager.cs

示例5: Prepare

 public void Prepare(PreparingEnlistment preparingEnlistment)
 {
     // Abort if this happens before all messges are consumed
     if (this.channel.State == CommunicationState.Opened && this.channel.InternalPendingItems > 0)
     {
         Exception e = DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.GetString(SR.MsmqSessionChannelsMustBeClosed)));
         preparingEnlistment.ForceRollback(e);
         this.channel.Fault();
     }
     else
     {
         preparingEnlistment.Done();
     }
 }
开发者ID:iskiselev,项目名称:JSIL.NetFramework,代码行数:14,代码来源:MsmqInputSessionChannel.cs


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