Pervaxis.Core.Messaging
1.6.0
dotnet add package Pervaxis.Core.Messaging --version 1.6.0
NuGet\Install-Package Pervaxis.Core.Messaging -Version 1.6.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Pervaxis.Core.Messaging" Version="1.6.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Pervaxis.Core.Messaging" Version="1.6.0" />
<PackageReference Include="Pervaxis.Core.Messaging" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Pervaxis.Core.Messaging --version 1.6.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Pervaxis.Core.Messaging, 1.6.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Pervaxis.Core.Messaging@1.6.0
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Pervaxis.Core.Messaging&version=1.6.0
#tool nuget:?package=Pervaxis.Core.Messaging&version=1.6.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Pervaxis.Core.Messaging
AWS SQS message publishing with typed domain event support and transport envelope metadata. Implements Section 13 of the Pervaxis Platform Spec.
AWS SQS only. RabbitMQ and other message brokers are not supported by design — all environments (dev, UAT, staging, production) use AWS SQS.
Installation
dotnet add package Pervaxis.Core.Messaging
Registration
builder.Services.AddPervaxisMessaging(options =>
{
options.ServiceName = "order-service";
options.Sqs.Region = "ap-south-1";
options.Sqs.DefaultQueueUrl = "https://sqs.ap-south-1.amazonaws.com/123456789/orders";
});
Or via appsettings.json:
{
"Pervaxis": {
"Messaging": {
"ServiceName": "order-service",
"Sqs": {
"Region": "ap-south-1",
"DefaultQueueUrl": "https://sqs.ap-south-1.amazonaws.com/123456789/orders",
"QueueUrlMappings": {
"OrderPlaced": "https://sqs.ap-south-1.amazonaws.com/123456789/order-events",
"PaymentProcessed": "https://sqs.ap-south-1.amazonaws.com/123456789/payment-events"
},
"EventBridgeBusArn": "arn:aws:events:ap-south-1:123456789:event-bus/pervaxis-platform"
}
}
}
}
Publishing Domain Events
public class OrderService(IMessagePublisher publisher)
{
public async Task PlaceOrderAsync(PlaceOrderCommand command, CancellationToken ct)
{
// ... domain logic ...
await publisher.PublishAsync(new OrderPlacedEvent
{
EventId = Guid.NewGuid(),
TenantId = command.TenantId,
CorrelationId = command.CorrelationId,
OccurredAt = DateTime.UtcNow,
OrderId = order.Id
}, ct);
}
}
Batch Publishing
await publisher.PublishBatchAsync(domainEvents, cancellationToken);
// Internally batches into 10-message SQS chunks per AWS SDK limit.
Message Envelope
Every message is wrapped automatically:
{
"envelopeId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"messageType": "Acme.Orders.Events.OrderPlacedEvent",
"messageVersion": 1,
"sourceService": "order-service",
"tenantId": "tenant-abc",
"correlationId": "req-corr-xyz",
"enqueuedAt": "2026-04-16T10:30:00Z",
"payload": "{ ... json serialized event ... }"
}
AWS IAM Requirements
The service role requires the following SQS permissions:
{
"Effect": "Allow",
"Action": ["sqs:SendMessage", "sqs:SendMessageBatch"],
"Resource": "arn:aws:sqs:ap-south-1:123456789:*"
}
Pervaxis Platform · Clarivex Technologies · https://clarivex.tech
| 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- AWSSDK.EventBridge (>= 3.7.401)
- AWSSDK.SQS (>= 3.7.500)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 9.0.0)
- Microsoft.Extensions.Logging.Abstractions (>= 9.0.0)
- Microsoft.Extensions.Options (>= 9.0.0)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 9.0.0)
- Microsoft.Extensions.Options.DataAnnotations (>= 9.0.0)
- Pervaxis.Core.Abstractions (>= 1.6.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.6.0 | 96 | 6/6/2026 |