Skip to content

Commit d17172c

Browse files
AmazonSQS v8: Samples, Snippets and upgrade guide (#7179)
* AmazonSQS v8: Samples, Snippets and upgrade guide * Review date --------- Co-authored-by: Daniel Marbach <[email protected]>
1 parent 8a9bbcb commit d17172c

28 files changed

+976
-5
lines changed

Snippets/Sqs/Sqs.sln

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Sqs_6.2", "Sqs_6.2\Sqs_6.2.
2222
EndProject
2323
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Sqs_7.3", "Sqs_7.3\Sqs_7.3.csproj", "{8A717AB8-8A09-49A0-8123-6A17093F0EDA}"
2424
EndProject
25+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Sqs_8", "Sqs_8\Sqs_8.csproj", "{15BED1EE-0751-4344-8737-094554FEC988}"
26+
EndProject
2527
Global
2628
GlobalSection(SolutionConfigurationPlatforms) = preSolution
2729
Debug|Any CPU = Debug|Any CPU
@@ -68,6 +70,10 @@ Global
6870
{8A717AB8-8A09-49A0-8123-6A17093F0EDA}.Debug|Any CPU.Build.0 = Debug|Any CPU
6971
{8A717AB8-8A09-49A0-8123-6A17093F0EDA}.Release|Any CPU.ActiveCfg = Release|Any CPU
7072
{8A717AB8-8A09-49A0-8123-6A17093F0EDA}.Release|Any CPU.Build.0 = Release|Any CPU
73+
{15BED1EE-0751-4344-8737-094554FEC988}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
74+
{15BED1EE-0751-4344-8737-094554FEC988}.Debug|Any CPU.Build.0 = Debug|Any CPU
75+
{15BED1EE-0751-4344-8737-094554FEC988}.Release|Any CPU.ActiveCfg = Release|Any CPU
76+
{15BED1EE-0751-4344-8737-094554FEC988}.Release|Any CPU.Build.0 = Release|Any CPU
7177
EndGlobalSection
7278
GlobalSection(SolutionProperties) = preSolution
7379
HideSolutionNode = FALSE
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
using System;
2+
using System.Threading.Tasks;
3+
using Amazon.SQS.Model;
4+
using NServiceBus.Pipeline;
5+
6+
#region sqs-access-to-native-message
7+
class AccessToAmazonSqsNativeMessage : Behavior<IIncomingContext>
8+
{
9+
public override Task Invoke(IIncomingContext context, Func<Task> next)
10+
{
11+
// get the native Amazon SQS message
12+
var message = context.Extensions.Get<Message>();
13+
14+
//do something useful
15+
16+
return next();
17+
}
18+
}
19+
#endregion

Snippets/Sqs/Sqs_8/Sqs_8.csproj

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
<PropertyGroup>
3+
<TargetFramework>net8.0</TargetFramework>
4+
</PropertyGroup>
5+
<ItemGroup>
6+
<PackageReference Include="NServiceBus.AmazonSQS" Version="8.*" />
7+
</ItemGroup>
8+
</Project>

0 commit comments

Comments
 (0)