Skip to content

Commit

Permalink
add support for configuring MessageVisibilityTimeout
Browse files Browse the repository at this point in the history
  • Loading branch information
tskimmett committed Oct 7, 2024
1 parent bb10791 commit 95caf09
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@ private static Action<OptionsBuilder<AzureQueueOptions>> GetQueueOptionBuilder(I
options.QueueNames = queueNames;
}
var visibilityTimeout = configurationSection["MessageVisibilityTimeout"];
if (TimeSpan.TryParse(visibilityTimeout, out var visibilityTimeoutTimeSpan))
{
options.MessageVisibilityTimeout = visibilityTimeoutTimeSpan;
}
var serviceKey = configurationSection["ServiceKey"];
if (!string.IsNullOrEmpty(serviceKey))
{
Expand Down

0 comments on commit 95caf09

Please sign in to comment.