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