-
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
1,256 additions
and
1,262 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 8 additions & 9 deletions
17
src/Foundatio.AzureServiceBus/Extensions/QueueEntryExtensions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,16 @@ | ||
using Foundatio.Queues; | ||
using Microsoft.Azure.ServiceBus; | ||
|
||
namespace Foundatio.Extensions | ||
namespace Foundatio.Extensions; | ||
|
||
internal static class QueueEntryExtensions | ||
{ | ||
internal static class QueueEntryExtensions | ||
{ | ||
|
||
public static string LockToken(this IQueueEntry entry) => entry.Properties["LockToken"]; | ||
public static string LockToken(this IQueueEntry entry) => entry.Properties["LockToken"]; | ||
|
||
public static void SetLockToken(this IQueueEntryMetadata entry, Message message) | ||
{ | ||
if (message.SystemProperties.IsReceived) | ||
entry.Properties.Add("LockToken", message.SystemProperties.LockToken); | ||
} | ||
public static void SetLockToken(this IQueueEntryMetadata entry, Message message) | ||
{ | ||
if (message.SystemProperties.IsReceived) | ||
entry.Properties.Add("LockToken", message.SystemProperties.LockToken); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.