azure-storage-queues

QueueTrigger Attribute Visibility Timeout

跟風遠走 提交于 2019-11-29 11:01:26
If I were to get a message from queue using Azure.Storage.Queue queue.GetMessage(TimeSpan.FromMinutes(20)); I can set the visibility timeout, however when trying to use Azure.WebJobs (SDK 0.4.0-beta) attributes to auto bind a webjob to a queue i.e. public static void ProcessQueueMessage([QueueTrigger("myqueue")] string message){ //do something with queue item } Is there a way to set the visibility timeout on the attribute? There does not seem to be an option in JobHostConfiguration().Queues. If there is no way to override, is it the standard 30 seconds then? In the latest v1.1.0 release, you

Azure storage queue message (show at specific time)

天大地大妈咪最大 提交于 2019-11-29 10:04:20
How can I add a message to Azure queue storage that will show up in the queue exactly tomorrow (after 24 h) ? Veena Udayabhanu - MSFT If you are using the Storage Client Library, you will be able to use the addMessage overload in CloudQueue that takes the initial visibility delay as an input param. Specifically, you would have to use the following overload in 2.0: AddMessage(CloudQueueMessage message, TimeSpan? timeToLive = null, TimeSpan? initialVisibilityDelay = null, QueueRequestOptions options = null, OperationContext operationContext = null) If you are using version 1.7, you would use the

Choosing between .NET Service Bus Queues vs Azure Queue Service [closed]

大兔子大兔子 提交于 2019-11-28 15:59:36
问题 Just a quick question regarding an Azure application. If I have a number of Web and Worker roles that need to communicate, documentation says to use the Azure Queue Service. However, I've just read that the new .NET Service Bus now also offers queues. These look to be more powerful as they appear to offer a much more detailed API. Whilst the .NSB looks more interesting it has a couple of issues that make me wary of using it in distributed application. (for example, Queue Expiration... if I

Azure storage queue message (show at specific time)

戏子无情 提交于 2019-11-28 03:27:33
问题 How can I add a message to Azure queue storage that will show up in the queue exactly tomorrow (after 24 h) ? 回答1: If you are using the Storage Client Library, you will be able to use the addMessage overload in CloudQueue that takes the initial visibility delay as an input param. Specifically, you would have to use the following overload in 2.0: AddMessage(CloudQueueMessage message, TimeSpan? timeToLive = null, TimeSpan? initialVisibilityDelay = null, QueueRequestOptions options = null,

Azure Function and storage queue, what to do if function fails

拜拜、爱过 提交于 2019-11-28 01:02:35
I'm working out a scenario where a post a message to an Azure Storage Queue. For testing purposes I've developed a console app, where I get the message and I'm able to update it with a try count, and when the logic is done, I delete the message. Now I'm trying to port my code to an Azure Function. One thing that seems to be very different is, when the Azure Function is called, the message is deleted from the queue. I find it hard to find any documentation on this specific subject and I feel I'm missing something with regard to the concept of combining these two. My questions: Am I right, that

Passing object messages in Azure Queue Storage

左心房为你撑大大i 提交于 2019-11-27 20:05:08
I'm trying to find a way to pass objects to the Azure Queue. I couldn't find a way to do this. As I've seen I can pass string or byte array, which is not very comfortable for passing objects. Is there anyway to pass custom objects to the Queue? Thanks! You can use the following classes as example: [Serializable] public abstract class BaseMessage { public byte[] ToBinary() { BinaryFormatter bf = new BinaryFormatter(); byte[] output = null; using (MemoryStream ms = new MemoryStream()) { ms.Position = 0; bf.Serialize(ms, this); output = ms.GetBuffer(); } return output; } public static T