0

I have a message in queue with initialVisibilityDelay property (so, message is not visible now):

await inputQueue.AddMessageAsync(new CloudQueueMessage(JsonConvert.SerializeObject(queueItem)), null, TimeSpan.FromMinutes(retryMinutes), null, null);

Any way to get this message to do some actions with the message with some conditions?

Oleg Sh
  • 8,496
  • 17
  • 89
  • 159

2 Answers2

1

Any way to get this message to do some actions with the message with some conditions?

Unfortunately no. This message will remain hidden for that duration and can't be fetched. You will only be able to do anything with this message when it appears in the queue i.e. after the visibility timeout period has expired.

Gaurav Mantri
  • 128,066
  • 12
  • 206
  • 241
1

Before the visibility delay has expired you can only delete it and all other messages.

It is hidden from any gets or peeks. This is an agent-centric mechanism for scheduling.

Architect Jamie
  • 1,621
  • 4
  • 18