DotNetWorkQueue.Transport.Redis.Basic.RedisQueueSend.RedisQueueSend C# (CSharp) Method

RedisQueueSend() public method

Initializes a new instance of the RedisQueueSend class.
public RedisQueueSend ( ISentMessageFactory sentMessageFactory, RedisHeaders headers, string>.ICommandHandlerWithOutput sendMessage, QueueOutputMessages>.ICommandHandlerWithOutput sendMessageBatch, ICommandHandlerWithOutput sendMessageAsync, ICommandHandlerWithOutput sendMessageBatchAsync ) : System
sentMessageFactory ISentMessageFactory The sent message factory.
headers RedisHeaders The headers.
sendMessage string>.ICommandHandlerWithOutput The send message.
sendMessageBatch QueueOutputMessages>.ICommandHandlerWithOutput The send message batch.
sendMessageAsync ICommandHandlerWithOutput The send message asynchronous.
sendMessageBatchAsync ICommandHandlerWithOutput The send message batch asynchronous.
return System
        public RedisQueueSend(ISentMessageFactory sentMessageFactory,
            RedisHeaders headers, ICommandHandlerWithOutput<SendMessageCommand, string> sendMessage, ICommandHandlerWithOutput<SendMessageCommandBatch, QueueOutputMessages> sendMessageBatch, ICommandHandlerWithOutput<SendMessageCommand, Task<string>> sendMessageAsync, ICommandHandlerWithOutput<SendMessageCommandBatch, Task<QueueOutputMessages>> sendMessageBatchAsync)
        {
            Guard.NotNull(() => sentMessageFactory, sentMessageFactory);
            Guard.NotNull(() => headers, headers);
            Guard.NotNull(() => sendMessage, sendMessage);
            Guard.NotNull(() => sendMessageBatch, sendMessageBatch);
            Guard.NotNull(() => sendMessageBatchAsync, sendMessageBatchAsync);
            Guard.NotNull(() => sentMessageFactory, sentMessageFactory);

            _headers = headers;
            _sendMessage = sendMessage;
            _sendMessageBatch = sendMessageBatch;
            _sendMessageAsync = sendMessageAsync;
            _sendMessageBatchAsync = sendMessageBatchAsync;
            _sentMessageFactory = sentMessageFactory;
        }
        #endregion