OfX-Nats
9.0.0
dotnet add package OfX-Nats --version 9.0.0
NuGet\Install-Package OfX-Nats -Version 9.0.0
<PackageReference Include="OfX-Nats" Version="9.0.0" />
<PackageVersion Include="OfX-Nats" Version="9.0.0" />
<PackageReference Include="OfX-Nats" />
paket add OfX-Nats --version 9.0.0
#r "nuget: OfX-Nats, 9.0.0"
#:package OfX-Nats@9.0.0
#addin nuget:?package=OfX-Nats&version=9.0.0
#tool nuget:?package=OfX-Nats&version=9.0.0
OfX-Nats
OfX-Nats is an extension package for OfX that leverages Nats for efficient data transportation. This package provides a high-performance, strongly-typed communication layer for OfX’s Attribute-based Data Mapping, enabling streamlined data retrieval across distributed systems.
Introduction
Nats-based Transport: Implements Nats to handle data communication between services, providing a fast, secure, and scalable solution.
Installation
To install the OfX-Nats package, use the following NuGet command:
dotnet add package OfX-Nats
Or via the NuGet Package Manager:
Install-Package OfX-Nats
How to Use
1. Register OfX-Nats
Add OfX-Nats to your service configuration during application startup:
For Client:
// Simple way
builder.Services.AddOfX(cfg =>
{
cfg.AddContractsContainNamespaces(typeof(SomeContractAssemblyMarker).Assembly);
cfg.AddNats(config => config.Url("nats://localhost:4222"));
});
// Or with NatsOpts
builder.Services.AddOfX(cfg =>
{
cfg.AddContractsContainNamespaces(typeof(SomeContractAssemblyMarker).Assembly);
cfg.AddNats(config => config.NatsOpts(new NatsOpts{...}));
});
// Note that the config.NatsOpts is higher priority than config.Url. It means if we have both NatsOpts and Url, the NatsOpts will be affected instead of Url.
...
var app = builder.Build();
...
app.Run();
Note: OfX-Nats uses subjects that start with OfX-[OfXAttribute metadata]. Therefore, you should avoid using other
subjects.
That All, enjoy your moment!
| Package Name | Description | .NET Version | Document |
|---|---|---|---|
| Core | |||
| OfX | OfX core | 8.0, 9.0 | ReadMe |
| Data Providers | |||
| OfX-EFCore | This is the OfX extension package using EntityFramework to fetch data | 8.0, 9.0 | ReadMe |
| OfX-MongoDb | This is the OfX extension package using MongoDb to fetch data | 8.0, 9.0 | ReadMe |
| Integrations | |||
| OfX-HotChocolate | OfX.HotChocolate is an integration package with HotChocolate for OfX. | 8.0, 9.0 | ReadMe |
| Transports | |||
| OfX-Aws.Sqs | OfX-Aws-Sqs is an extension package for OfX that leverages Amazon SQS for efficient data transportation. | 8.0, 9.0 | ReadMe |
| OfX-Azure.ServiceBus | OfX.Azure.ServiceBus is an extension package for OfX that leverages Azure ServiceBus for efficient data transportation. | 8.0, 9.0 | ReadMe |
| OfX-gRPC | OfX.gRPC is an extension package for OfX that leverages gRPC for efficient data transportation. | 8.0, 9.0 | ReadMe |
| OfX-Kafka | OfX-Kafka is an extension package for OfX that leverages Kafka for efficient data transportation. | 8.0, 9.0 | ReadMe |
| OfX-Nats | OfX-Nats is an extension package for OfX that leverages Nats for efficient data transportation. | 8.0, 9.0 | This Document |
| OfX-RabbitMq | OfX-RabbitMq is an extension package for OfX that leverages RabbitMq for efficient data transportation. | 8.0, 9.0 | ReadMe |
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. 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
- Microsoft.Extensions.Hosting.Abstractions (>= 8.0.0)
- NATS.Net (>= 2.5.5)
- OfX (>= 9.0.0)
-
net8.0
- Microsoft.Extensions.Hosting.Abstractions (>= 8.0.0)
- NATS.Net (>= 2.5.5)
- OfX (>= 9.0.0)
-
net9.0
- Microsoft.Extensions.Hosting.Abstractions (>= 8.0.0)
- NATS.Net (>= 2.5.5)
- OfX (>= 9.0.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 |
|---|---|---|
| 9.0.0 | 98 | 2/11/2026 |
| 8.3.0 | 90 | 2/9/2026 |
| 8.2.6 | 94 | 1/28/2026 |
| 8.2.5 | 95 | 1/24/2026 |
| 8.2.4 | 94 | 1/19/2026 |
| 8.2.3 | 94 | 1/18/2026 |
| 8.2.2 | 95 | 1/18/2026 |
| 8.2.1 | 93 | 1/17/2026 |
| 8.2.0 | 91 | 1/17/2026 |
| 8.1.2 | 98 | 1/13/2026 |
| 8.1.1 | 97 | 1/13/2026 |
| 8.1.0 | 94 | 1/11/2026 |
| 8.0.0 | 102 | 1/3/2026 |
| 7.2.2 | 303 | 12/18/2025 |
| 7.2.1 | 609 | 12/1/2025 |
| 7.2.0 | 424 | 11/18/2025 |
| 7.2.0-preview | 411 | 11/18/2025 |
| 7.1.10 | 203 | 10/20/2025 |
| 7.1.9 | 185 | 10/17/2025 |
| 7.1.8 | 193 | 10/15/2025 |