public RootContext(MessageHeader messageHeader, params Func <Sender, Sender>[] middleware) { SenderMiddleware = middleware.Reverse() .Aggregate((Sender)DefaultSender, (inner, outer) => outer(inner)); Headers = messageHeader; }
public RootContext WithHeaders(MessageHeader headers) => Copy(c => c.Headers = headers);
public RootContext() { SenderMiddleware = null; Headers = MessageHeader.Empty; }