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; }
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; }
public CreateQueueApiRequest(MnsConfig config, string queueName, QueueAttributeParameter parameter) : base(config, parameter) { if (parameter == null) { throw new ArgumentException("parameter"); } parameter.Validate(); this.QueueName = queueName; }
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; }
public ChangeMessageVisibilityApiRequest(MnsConfig config, string queueName, string receiptHandle, int visibilityTimeout) : base(config) { this.QueueName = queueName; this.ReceiptHandle = receiptHandle; this.VisibilityTimeout = visibilityTimeout; }
public ListQueueApiRequest(MnsConfig config, string prefix, int pageSize, string nextMarker) : base(config) { this.Prefix = prefix; this.PageSize = pageSize; this.NextMarker = nextMarker; }
public Queue(MnsConfig config, string name) { this.Config = config; this.Name = name; }
public SetQueueAttributesApiRequest(MnsConfig config, string queueName, QueueAttributeParameter parameter) : base(config, parameter) { this.QueueName = queueName; }
public ApiRequestBase(MnsConfig config) : base() { this.config = config; }
public DeleteQueueApiRequest(MnsConfig config, string queueName) : base(config) { this.QueueName = queueName; }
public GetQueueAttributeApiRequest(MnsConfig config, string queueName) : base(config) { this.QueueName = queueName; }
public Queue(MnsConfig config) { this.Config = config; }
public BatchPeekMessageApiRequest(MnsConfig config, string queueName, int numOfMessages) : base(config) { this.QueueName = queueName; this.NumberOfMessages = numOfMessages; }
public static MNS Configure(MnsConfig config) { return(new MNS(config)); }
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; }
public PeekMessageApiRequest(MnsConfig config, string queueName) : base(config) { this.QueueName = queueName; }