Skip to content

Commit

Permalink
DefaultMessageTimeToLive should only be set when not in BasicTier
Browse files Browse the repository at this point in the history
  • Loading branch information
mburumaxwell committed Apr 19, 2021
1 parent da544ae commit 1252f90
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -442,16 +442,16 @@ private async Task CreateQueueIfNotExistsAsync(EventRegistration ereg, string na
// set the defaults for a queue here
Status = EntityStatus.Active,
EnablePartitioning = false,
DefaultMessageTimeToLive = Defaults.DefaultMessageTimeToLive,
EnableBatchedOperations = true,
DeadLetteringOnMessageExpiration = true,
LockDuration = Defaults.LockDuration,
MaxDeliveryCount = Defaults.MaxDeliveryCount,
};

// Certain properties are not allowed in Basic Tier
// Certain properties are not allowed in Basic Tier or have lower limits
if (!await IsBasicTierAsync(cancellationToken))
{
options.DefaultMessageTimeToLive = Defaults.DefaultMessageTimeToLive; // defaults to 14days in basic tier
options.RequiresDuplicateDetection = BusOptions.EnableDeduplication;
options.DuplicateDetectionHistoryTimeWindow = BusOptions.DuplicateDetectionDuration;
options.AutoDeleteOnIdle = Defaults.AutoDeleteOnIdle;
Expand Down

0 comments on commit 1252f90

Please sign in to comment.