示例#1
0
 async Task RequestImmediateDispatchUsingScope(IPipelineContext context)
 {
     #region RequestImmediateDispatchUsingScope
     using (new TransactionScope(TransactionScopeOption.Suppress, TransactionScopeAsyncFlowOption.Enabled))
     {
         await context.SendLocal(new MyMessage());
     }
     #endregion
 }
示例#2
0
 async Task RequestImmediateDispatchUsingScope(IPipelineContext context)
 {
     #region RequestImmediateDispatchUsingScope
     using (new TransactionScope(TransactionScopeOption.Suppress, TransactionScopeAsyncFlowOption.Enabled))
     {
         await context.SendLocal(new MyMessage());
     }
     #endregion
 }