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