File tree Expand file tree Collapse file tree
src/Foundatio.Redis/Queues
tests/Foundatio.Redis.Tests/Queues Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -198,8 +198,7 @@ private string GetTopicName()
198198
199199 protected override async Task < string ? > EnqueueImplAsync ( T data , QueueEntryOptions options )
200200 {
201- // TODO: Use options.UniqueId as the entry ID when provided (like InMemoryQueue and AzureServiceBusQueue do)
202- string id = Guid . NewGuid ( ) . ToString ( "N" ) ;
201+ string id = ! String . IsNullOrEmpty ( options . UniqueId ) ? options . UniqueId : Guid . NewGuid ( ) . ToString ( "N" ) ;
203202 _logger . LogDebug ( "Queue {QueueName} enqueue item: {QueueEntryId}" , _options . Name , id ) ;
204203
205204 if ( options . DeliveryDelay . HasValue && options . DeliveryDelay . Value > TimeSpan . Zero )
Original file line number Diff line number Diff line change @@ -164,7 +164,7 @@ public override Task EnqueueAsync_WithSerializationError_ThrowsAndLeavesQueueEmp
164164 return base . EnqueueAsync_WithSerializationError_ThrowsAndLeavesQueueEmptyAsync ( ) ;
165165 }
166166
167- [ Fact ( Skip = "Redis does not use UniqueId as entry ID" ) ]
167+ [ Fact ]
168168 public override Task EnqueueAsync_WithUniqueId_UsesProvidedIdAsync ( )
169169 {
170170 return base . EnqueueAsync_WithUniqueId_UsesProvidedIdAsync ( ) ;
You can’t perform that action at this time.
0 commit comments