Example #1
0
        public Task Send <T>(object values, IPipe <SendContext <T> > pipe, CancellationToken cancellationToken)
            where T : class
        {
            if (values == null)
            {
                throw new ArgumentNullException(nameof(values));
            }

            return(MessageInitializerCache <T> .Send(this, values, pipe, cancellationToken));
        }
Example #2
0
        public Task Send <T>(object values, CancellationToken cancellationToken)
            where T : class
        {
            if (values == null)
            {
                throw new ArgumentNullException(nameof(values));
            }

            return(MessageInitializerCache <T> .Send(this, values, new PublishPipeAdapter <T>(_publishPipe), cancellationToken));
        }