public Task DispatchContext() { var context = new TestableDispatchContext(); context.Operations.Add(BuildTransportOperation()); return(Verify(context)); }
public Task DispatchContext() { var context = new TestableDispatchContext(); context.Operations.Add(BuildTransportOperation()); context.Extensions.Set("key", "value"); return(Verify(context)); }
public override Task Invoke(IIncomingLogicalMessageContext context, Func <IDispatchContext, Task> stage) { context.PrintInstanceWithRunSpecificIfPossible(instance, writer); var dispatchContext = new TestableDispatchContext(); dispatchContext.Extensions.Merge(context.Extensions); return(stage(dispatchContext)); }