Skip to content

Commit

Permalink
Introduced setting the SessionID (https://learn.microsoft.com/en-us/a…
Browse files Browse the repository at this point in the history
…zure/service-bus-messaging/message-sessions) if IMessageWithOrderingKey is implemented on a message
  • Loading branch information
cdmdotnet committed Sep 1, 2024
1 parent 0a93946 commit f15efbb
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/dotnetcore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ name: Build Core Framework
on: [push]

env:
nuGetVersionNumber: 5.2.1
nuGetFullVersionNumber: 5.2.1.${{ github.run_number }}
nuGetVersionNumber: 5.2.2
nuGetFullVersionNumber: 5.2.2.${{ github.run_number }}

jobs:
build:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ on:
workflow_dispatch:

env:
nuGetVersionNumber: 5.2.1
nuGetFullVersionNumber: 5.2.1.${{ github.run_number }}
nuGetVersionNumber: 5.2.2
nuGetFullVersionNumber: 5.2.2.${{ github.run_number }}

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
Expand Down
4 changes: 4 additions & 0 deletions Framework/Azure/Cqrs.Azure.ServiceBus/AzureServiceBus.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1366,6 +1366,10 @@ BrokeredMessage CreateBrokeredMessage
{
CorrelationId = CorrelationIdHelper.GetCorrelationId().ToString("N")
};
if (message is IMessageWithOrderingKey messageWithOrderingKey)

Check failure on line 1369 in Framework/Azure/Cqrs.Azure.ServiceBus/AzureServiceBus.cs

View workflow job for this annotation

GitHub Actions / build (windows-2019, 7.0.x)

The type or namespace name 'IMessageWithOrderingKey' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 1369 in Framework/Azure/Cqrs.Azure.ServiceBus/AzureServiceBus.cs

View workflow job for this annotation

GitHub Actions / build (windows-2019, 7.0.x)

The type or namespace name 'IMessageWithOrderingKey' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 1369 in Framework/Azure/Cqrs.Azure.ServiceBus/AzureServiceBus.cs

View workflow job for this annotation

GitHub Actions / build (windows-2019, 7.0.x)

The type or namespace name 'IMessageWithOrderingKey' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 1369 in Framework/Azure/Cqrs.Azure.ServiceBus/AzureServiceBus.cs

View workflow job for this annotation

GitHub Actions / build (windows-2019, 7.0.x)

The type or namespace name 'IMessageWithOrderingKey' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 1369 in Framework/Azure/Cqrs.Azure.ServiceBus/AzureServiceBus.cs

View workflow job for this annotation

GitHub Actions / build (windows-2019, 7.0.x)

The type or namespace name 'IMessageWithOrderingKey' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 1369 in Framework/Azure/Cqrs.Azure.ServiceBus/AzureServiceBus.cs

View workflow job for this annotation

GitHub Actions / build (windows-2019, 7.0.x)

The type or namespace name 'IMessageWithOrderingKey' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 1369 in Framework/Azure/Cqrs.Azure.ServiceBus/AzureServiceBus.cs

View workflow job for this annotation

GitHub Actions / build (windows-2019, 7.0.x)

The type or namespace name 'IMessageWithOrderingKey' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 1369 in Framework/Azure/Cqrs.Azure.ServiceBus/AzureServiceBus.cs

View workflow job for this annotation

GitHub Actions / build (windows-2019, 7.0.x)

The type or namespace name 'IMessageWithOrderingKey' could not be found (are you missing a using directive or an assembly reference?)
{
brokeredMessage.SessionId = messageWithOrderingKey.OrderKey;
}
brokeredMessage.AddUserProperty("CorrelationId", brokeredMessage.CorrelationId);
brokeredMessage.AddUserProperty("Type", messageType.FullName);
brokeredMessage.AddUserProperty("Source", $"{Logger.LoggerSettings.ModuleName}/{Logger.LoggerSettings.Instance}/{Logger.LoggerSettings.Environment}/{Logger.LoggerSettings.EnvironmentInstance}");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

* Refactored .NET Standard 2.0 to be far now async/await able... means some breaking changes as method names and return types change.
* Added the ability to delay sending message publishing
* Introduced setting the SessionID (https://learn.microsoft.com/en-us/azure/service-bus-messaging/message-sessions) if IMessageWithOrderingKey is implemented on a message

Version 5.0

Expand Down
3 changes: 2 additions & 1 deletion Framework/Cqrs/Cqrs.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
Version 5.2

* Refactored .NET Standard 2.0 to be far more async/await able... means some breaking changes as method names and return types change.
* Added the ability to delay sending message publishing
* Added the ability to delay sending message publishing.
* Introduced the IMessageWithOrderingKey interface to aid in applying message process ordering if supported.

Version 5.0

Expand Down

0 comments on commit f15efbb

Please sign in to comment.