File tree Expand file tree Collapse file tree 9 files changed +18
-29
lines changed
samples/aws/sqs-native-integration/Sqs_9 Expand file tree Collapse file tree 9 files changed +18
-29
lines changed Original file line number Diff line number Diff line change 1
- using System ;
2
- using System . Threading . Tasks ;
3
- using Amazon . SQS . Model ;
1
+ using Amazon . SQS . Model ;
4
2
using Microsoft . Extensions . Logging ;
5
3
using NServiceBus . Pipeline ;
6
4
Original file line number Diff line number Diff line change 1
- using System ;
2
1
using Microsoft . Extensions . DependencyInjection ;
3
2
using Microsoft . Extensions . Hosting ;
4
3
using Microsoft . Extensions . Logging ;
5
4
using Newtonsoft . Json ;
6
- using NServiceBus ;
7
5
8
6
Console . Title = "SimpleReceiver" ;
9
7
Original file line number Diff line number Diff line change 1
1
<Project Sdk =" Microsoft.NET.Sdk" >
2
2
3
3
<PropertyGroup >
4
- <TargetFrameworks >net9.0;net8.0</ TargetFrameworks >
4
+ <TargetFramework >net10.0</ TargetFramework >
5
5
<OutputType >Exe</OutputType >
6
- <LangVersion >12.0</LangVersion >
6
+ <LangVersion >preview</LangVersion >
7
+ <ImplicitUsings >enable</ImplicitUsings >
7
8
</PropertyGroup >
8
9
9
10
<ItemGroup >
10
11
<PackageReference Include =" Newtonsoft.Json" Version =" 13.*" />
11
- <PackageReference Include =" NServiceBus" Version =" 9.* " />
12
- <PackageReference Include =" NServiceBus.AmazonSQS" Version =" 8.* " />
13
- <PackageReference Include =" NServiceBus.Extensions.Hosting" Version =" 3.* " />
14
- <PackageReference Include =" NServiceBus.Newtonsoft.Json" Version =" 4.* " />
12
+ <PackageReference Include =" NServiceBus" Version =" 10.0.0-alpha.1 " />
13
+ <PackageReference Include =" NServiceBus.AmazonSQS" Version =" 9.0.0-alpha.1 " />
14
+ <PackageReference Include =" NServiceBus.Extensions.Hosting" Version =" 4.0.0-alpha.1 " />
15
+ <PackageReference Include =" NServiceBus.Newtonsoft.Json" Version =" 5.0.0-alpha.1 " />
15
16
</ItemGroup >
16
17
17
18
</Project >
Original file line number Diff line number Diff line change 1
- using NServiceBus ;
2
-
3
- namespace NativeIntegration . Receiver
1
+ namespace NativeIntegration . Receiver
4
2
{
5
3
public class SomeNativeMessage : IMessage
6
4
{
Original file line number Diff line number Diff line change 1
- using System . Threading . Tasks ;
2
- using Amazon . SQS . Model ;
1
+ using Amazon . SQS . Model ;
3
2
using Microsoft . Extensions . Logging ;
4
3
using NativeIntegration . Receiver ;
5
- using NServiceBus ;
4
+
6
5
#region HandlerAccessingNativeMessage
7
6
public class SomeNativeMessageHandler ( ILogger < SomeNativeMessageHandler > logger ) : IHandleMessages < SomeNativeMessage >
8
7
{
Original file line number Diff line number Diff line change 1
- using NServiceBus ;
1
+ namespace NativeIntegration . Receiver ;
2
2
3
- namespace NativeIntegration . Receiver
3
+ public class SomeReply : IMessage
4
4
{
5
- public class SomeReply : IMessage
6
- {
7
- public string ThisIsTheMessage { get ; set ; }
8
- }
5
+ public string ThisIsTheMessage { get ; set ; }
9
6
}
Original file line number Diff line number Diff line change 1
- using System ;
2
- using System . Collections . Generic ;
3
- using System . Threading . Tasks ;
4
- using Amazon . SQS ;
1
+ using Amazon . SQS ;
5
2
using Amazon . SQS . Model ;
6
3
7
4
#region NativeMessage
Original file line number Diff line number Diff line change 1
1
<Project Sdk =" Microsoft.NET.Sdk" >
2
2
3
3
<PropertyGroup >
4
- <TargetFrameworks >net9.0;net8.0</ TargetFrameworks >
4
+ <TargetFramework >net10.0</ TargetFramework >
5
5
<OutputType >Exe</OutputType >
6
- <LangVersion >12.0</LangVersion >
6
+ <LangVersion >preview</LangVersion >
7
+ <ImplicitUsings >enable</ImplicitUsings >
7
8
</PropertyGroup >
8
9
9
10
<ItemGroup >
You can’t perform that action at this time.
0 commit comments