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