C# Class AzureStorageQueueConnector.Controllers.MessagesController

Controller to handle messages
Inheritance: ApiController
Show file Open project: logicappsio/AzureQueueSample

Public Methods

Method Description
DeleteMessage ( string queueName, string messageId, string popReceipt ) : void

Delete Message

GetMessage ( string queueName ) : Microsoft.WindowsAzure.Storage.Queue.CloudQueueMessage

Get Message

MessagesController ( ) : System
SendMessage ( string queueName, string messageText ) : void

Send Message

Private Methods

Method Description
NewMessageTrigger ( string triggerState, string queueName ) : HttpResponseMessage

Method Details

DeleteMessage() public method

Delete Message
public DeleteMessage ( string queueName, string messageId, string popReceipt ) : void
queueName string The name of the Storage Queue
messageId string ID of the Message to be deleted
popReceipt string The PopReceipt value received while reading the message
return void

GetMessage() public method

Get Message
public GetMessage ( string queueName ) : Microsoft.WindowsAzure.Storage.Queue.CloudQueueMessage
queueName string The name of the Storage Queue
return Microsoft.WindowsAzure.Storage.Queue.CloudQueueMessage

MessagesController() public method

public MessagesController ( ) : System
return System

SendMessage() public method

Send Message
public SendMessage ( string queueName, string messageText ) : void
queueName string The name of the Storage Queue
messageText string The message text to be sent
return void