FlowX.Nats
4.0.1
See the version list below for details.
dotnet add package FlowX.Nats --version 4.0.1
NuGet\Install-Package FlowX.Nats -Version 4.0.1
<PackageReference Include="FlowX.Nats" Version="4.0.1" />
<PackageVersion Include="FlowX.Nats" Version="4.0.1" />
<PackageReference Include="FlowX.Nats" />
paket add FlowX.Nats --version 4.0.1
#r "nuget: FlowX.Nats, 4.0.1"
#:package FlowX.Nats@4.0.1
#addin nuget:?package=FlowX.Nats&version=4.0.1
#tool nuget:?package=FlowX.Nats&version=4.0.1
FlowX.Nats
FlowX.Nats is an extension package for FlowX that integrates with NATS.io, providing a seamless way to handle message-based communication using FlowX’s Request Flow patterns. This package is ideal for distributed applications that require reliable event-driven architecture.
Features
- Enables communication via NATS in FlowX.
- Supports request-response and event-driven patterns.
- Leverages FlowX’s fluent API for seamless integration.
Prerequisites
Prerequisites
Ensure you have the following installed:
- .NET 8.0 or higher
Installation
To install the FlowX package, use the following NuGet command:
dotnet add package FlowX.Nats
Or via the NuGet Package Manager:
Install-Package FlowX.Nats
Usage
1. Register FlowX.Nats in the Dependency Injection Container
Add FlowX.Nats to your service configuration:
builder.Services.AddFlowX(options =>
{
options.AddModelsFromNamespaceContaining<IAssemblyMarker>();
options.AddHandlersFromNamespaceContaining<IAssemblyMarker>();
options.AddDbContextDynamic<Service1DbContext>(opts =>
{
opts.AddDynamicRepositories();
opts.AddDynamicUnitOfWork();
});
options.AddNats(config => config.Url("nats://localhost:4222"));
});
Method descriptions
AddNats: Add Nats config, you have to locate the nats Url, you can also config the Prefix for Nats.
2. Sending Requests via NATS
var sender = ServiceProvider.GetRequiredService<IFlowXSender>();
var response = await sender.Send(new GetProvince("1"));
Acts as FlowX, you don't need to care about the behind the scene. FlowX handle the RPC request for you!
Enjoy your moment!
| Package Name | Description | .NET Version | Document |
|---|---|---|---|
| FlowX | FlowX core | 8.0, 9.0 | ReadMe |
| Data Provider | |||
| FlowX.EntityFrameworkCore | This is the FlowX extension package using EntityFramework to fetch data | 8.0, 9.0 | ReadMe |
| Transports | |||
| FlowX.Nats | FlowX.Nats is an extension package for FlowX that leverages Nats for efficient data transportation. | 8.0, 9.0 | This Document |
| 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 was computed. 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. |
-
net8.0
- FlowX (>= 4.0.1)
- Microsoft.Extensions.Hosting.Abstractions (>= 8.0.0)
- NATS.Net (>= 2.5.6)
-
net9.0
- FlowX (>= 4.0.1)
- Microsoft.Extensions.Hosting.Abstractions (>= 8.0.0)
- NATS.Net (>= 2.5.6)
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 | 90 | 3/8/2026 |
| 8.0.0 | 107 | 1/20/2026 |
| 7.0.5 | 106 | 1/8/2026 |
| 7.0.4 | 191 | 12/23/2025 |
| 7.0.3 | 255 | 12/14/2025 |
| 7.0.2 | 168 | 12/14/2025 |
| 7.0.1 | 444 | 12/11/2025 |
| 7.0.0 | 322 | 11/11/2025 |
| 6.0.7 | 212 | 10/30/2025 |
| 6.0.6 | 220 | 10/29/2025 |
| 6.0.5 | 206 | 10/22/2025 |
| 6.0.4 | 194 | 10/21/2025 |
| 6.0.3 | 199 | 10/20/2025 |
| 6.0.2 | 183 | 10/17/2025 |
| 6.0.1 | 189 | 10/17/2025 |
| 6.0.0 | 187 | 10/17/2025 |
| 5.0.1 | 322 | 4/26/2025 |
| 5.0.0 | 247 | 4/25/2025 |
| 4.0.2 | 233 | 4/24/2025 |
| 4.0.1 | 280 | 4/24/2025 |