Keryhe.Messaging.AWS
3.1.1
dotnet add package Keryhe.Messaging.AWS --version 3.1.1
NuGet\Install-Package Keryhe.Messaging.AWS -Version 3.1.1
<PackageReference Include="Keryhe.Messaging.AWS" Version="3.1.1" />
<PackageVersion Include="Keryhe.Messaging.AWS" Version="3.1.1" />
<PackageReference Include="Keryhe.Messaging.AWS" />
paket add Keryhe.Messaging.AWS --version 3.1.1
#r "nuget: Keryhe.Messaging.AWS, 3.1.1"
#:package Keryhe.Messaging.AWS@3.1.1
#addin nuget:?package=Keryhe.Messaging.AWS&version=3.1.1
#tool nuget:?package=Keryhe.Messaging.AWS&version=3.1.1
Keryhe.Messaging.AWS
An Amazon SQS implementation of the IMessageListener and IMessagePublisher interfaces.
How to add the SQSListener and SQSPublisher
using Keryhe.Messaging.AWS.Extensions;
builder.Services.AddSQSListener<Message>(builder.Configuration.GetSection("AmazonSQSListener"));
builder.Services.AddSQSPublisher<Message>(builder.Configuration.GetSection("AmazonSQSPublisher"));
appsettings configuration section
"AmazonSQSListener":
{
"Region": "",
"AccessKey": "",
"SecretKey": "",
"Sources": {
"orders": {
"QueueUrl": "https://sqs.us-east-1.amazonaws.com/123456789012/orders",
"MaxNumberOfMessages": 1,
"WaitTimeSeconds": 5
},
"audit": {
"QueueUrl": "https://sqs.us-east-1.amazonaws.com/123456789012/audit",
"MaxNumberOfMessages": 1,
"WaitTimeSeconds": 5
}
}
}
"AmazonSQSPublisher":
{
"Region": "",
"AccessKey": "",
"SecretKey": "",
"Destinations": {
"orders": "https://sqs.us-east-1.amazonaws.com/123456789012/orders",
"audit": "https://sqs.us-east-1.amazonaws.com/123456789012/audit"
}
}
Each key under Sources is the name you pass to SubscribeAsync(source, handler, token) — call it once per source to listen to. UnsubscribeAsync(source, token) stops listening to that source.
Each key under Destinations is the name you pass to SendAsync(message, name), mapped to the queue's URL.
To use Amazon SQS as your transport layer, install the Keryhe.Messaging.AWS package from NuGet.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- AWSSDK.SQS (>= 4.0.100.6)
- Keryhe.Messaging (>= 3.1.0)
- Microsoft.Extensions.Configuration (>= 10.0.10)
- Microsoft.Extensions.Logging (>= 10.0.10)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 10.0.10)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.