Beispiel #1
0
        static IDictionary <string, string> ConvertReceiveMessage(ReceiveMessage request)
        {
            var parameters = new Dictionary <string, string> {
                { "Action", "ReceiveMessage" }
            };

            if (request.IsSetQueueName())
            {
                parameters.Add("QueueName", request.QueueName);
            }
            if (request.IsSetMaxNumberOfMessages())
            {
                parameters.Add("MaxNumberOfMessages", request.MaxNumberOfMessages + "");
            }
            if (request.IsSetVisibilityTimeout())
            {
                parameters.Add("VisibilityTimeout", request.VisibilityTimeout + "");
            }
            return(parameters);
        }