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.Publish(object message, PublishOptions options, CancellationToken cancellationToken) => innerContext?.Publish(message, options) ?? innerSession.Publish(message, options, cancellationToken);