예제 #1
0
    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));
    }
예제 #3
0
            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));
            }