Example #1
0
 public static IDisposable SetCurrent(MessageContext context)
 {
     var previous = _current;
     _current = context;
     return new DisposableAction(() => _current = previous);
 }
Example #2
0
 public MessageContextWithDispatchQueueName(MessageContext context, string dispatchQueueName)
 {
     _context = context;
     DispatchQueueName = dispatchQueueName;
 }