public BatchReceiveMessageApiRequest(MnsConfig config, string queueName, int waitseconds = 10, int numOfMessages = 16) : base(config)
 {
     this.config        = config;
     this.queueName     = queueName;
     this.waitseconds   = waitseconds;
     this.numOfMessages = numOfMessages;
 }
        public BatchSendMessageApiRequest(MnsConfig config, string queueName, BatchSendMessageApiParameter messages) : base(config, messages)
        {
            if (messages == null || messages.Messages == null || messages.Messages.Count <= 0 || messages.Messages.Where(m => string.IsNullOrEmpty(m.MessageBody)).Count() > 0)
            {
                throw new ArgumentException("messages");
            }

            this.QueueName = queueName;
        }
Пример #3
0
        public BatchDeleteMessageApiRequest(MnsConfig config, string queueName, BatchDeleteMessageApiParameter parameter) : base(config, parameter)
        {
            if (parameter == null || parameter.ReceiptHandles == null || parameter.ReceiptHandles.Count <= 0)
            {
                throw new ArgumentException("parameter");
            }

            this.config    = config;
            this.queueName = queueName;
        }
Пример #4
0
        public CreateQueueApiRequest(MnsConfig config, string queueName, QueueAttributeParameter parameter) : base(config, parameter)
        {
            if (parameter == null)
            {
                throw new ArgumentException("parameter");
            }

            parameter.Validate();

            this.QueueName = queueName;
        }
Пример #5
0
        public DeleteMessageApiRequest(MnsConfig config, string queneName, string receiptHandle) : base(config)
        {
            if (string.IsNullOrEmpty(receiptHandle))
            {
                throw new ArgumentException(receiptHandle);
            }

            this.config        = config;
            this.queneName     = queneName;
            this.receiptHandle = receiptHandle;
        }
Пример #6
0
 public ChangeMessageVisibilityApiRequest(MnsConfig config, string queueName, string receiptHandle, int visibilityTimeout) : base(config)
 {
     this.QueueName         = queueName;
     this.ReceiptHandle     = receiptHandle;
     this.VisibilityTimeout = visibilityTimeout;
 }
Пример #7
0
 public ListQueueApiRequest(MnsConfig config, string prefix, int pageSize, string nextMarker) : base(config)
 {
     this.Prefix     = prefix;
     this.PageSize   = pageSize;
     this.NextMarker = nextMarker;
 }
Пример #8
0
 public Queue(MnsConfig config, string name)
 {
     this.Config = config;
     this.Name   = name;
 }
Пример #9
0
 public SetQueueAttributesApiRequest(MnsConfig config, string queueName, QueueAttributeParameter parameter) : base(config, parameter)
 {
     this.QueueName = queueName;
 }
Пример #10
0
 public ApiRequestBase(MnsConfig config) : base()
 {
     this.config = config;
 }
Пример #11
0
 public DeleteQueueApiRequest(MnsConfig config, string queueName) : base(config)
 {
     this.QueueName = queueName;
 }
 public GetQueueAttributeApiRequest(MnsConfig config, string queueName) : base(config)
 {
     this.QueueName = queueName;
 }
Пример #13
0
 public Queue(MnsConfig config)
 {
     this.Config = config;
 }
Пример #14
0
 public BatchPeekMessageApiRequest(MnsConfig config, string queueName, int numOfMessages) : base(config)
 {
     this.QueueName        = queueName;
     this.NumberOfMessages = numOfMessages;
 }
Пример #15
0
 public static MNS Configure(MnsConfig config)
 {
     return(new MNS(config));
 }
Пример #16
0
 private MNS(MnsConfig config)
 {
     this.Config = config;
 }
 public ReceiveMessageApiRequest(MnsConfig config, string queueName, int waitSeconds = 10) : base(config)
 {
     this.config      = config;
     this.queueName   = queueName;
     this.waitSeconds = waitSeconds;
 }
Пример #18
0
 public PeekMessageApiRequest(MnsConfig config, string queueName) : base(config)
 {
     this.QueueName = queueName;
 }