Beispiel #1
0
        public override async Task Publish(object message, PublishOptions options)
        {
            Guard.AgainstNull(message, nameof(message));
            Guard.AgainstNull(options, nameof(options));
            ValidateHasRun();
            await TestContextValidator.Validate(message, options, Builder);

            await base.Publish(message, options);
        }
Beispiel #2
0
        public async Task Run(IHandleTimeouts <TMessage> handler)
        {
            Guard.AgainstNull(handler, nameof(handler));
            hasRun = true;
            await TestContextValidator.Validate(message, Headers, Extensions, Builder);

            await handler.Timeout(message, this);

            AddDataIfSaga(handler);
        }