public async Task PipelineContext() { var context = new TestablePipelineContext(); await context.Publish(new PublishMessage { Property = "Value" }); await context.Send(new SendMessage { Property = "Value" }); var options = new SendOptions(); options.DelayDeliveryWith(TimeSpan.FromDays(1)); await context.Send(new SendMessage { Property = "ValueWithDelay" }, options); await Verify(context); }
Task IUniformSession.Send(object message, SendOptions options, CancellationToken cancellationToken) => innerContext?.Send(message, options) ?? innerSession.Send(message, options, cancellationToken);