public ActionResult GetLengthOfQueue() { var queuesBusiness = new AzureQueuesBusiness.AzureQueuesBusiness(); var lengthofQueue = queuesBusiness.GetLengthofQueue("test"); return(View(model: lengthofQueue)); }
public ActionResult PeekMessage() { var queuesBusiness = new AzureQueuesBusiness.AzureQueuesBusiness(); var message = queuesBusiness.PeekMessageInQueue("test"); return(View(model: message == null ? "No Message Found !" : message.AsString)); }
public ActionResult AddMessage(AzureQueuesModel.Message message) { if (ModelState.IsValid) { var azureQueues = new AzureQueuesBusiness.AzureQueuesBusiness(); azureQueues.InsertMessage("test", message.MessageDetails); } return(RedirectToAction("Index")); }