OfX-Nats 3.1.5

There is a newer version of this package available.
See the version list below for details.
dotnet add package OfX-Nats --version 3.1.5                
NuGet\Install-Package OfX-Nats -Version 3.1.5                
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="OfX-Nats" Version="3.1.5" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add OfX-Nats --version 3.1.5                
#r "nuget: OfX-Nats, 3.1.5"                
#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.
// Install OfX-Nats as a Cake Addin
#addin nuget:?package=OfX-Nats&version=3.1.5

// Install OfX-Nats as a Cake Tool
#tool nuget:?package=OfX-Nats&version=3.1.5                

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.

Demo Project!


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:

builder.Services.AddOfX(cfg =>
{
    cfg.AddContractsContainNamespaces(typeof(SomeContractAssemblyMarker).Assembly);
    cfg.AddHandlersFromNamespaceContaining<SomeHandlerAssemblyMarker>();
    cfg.AddNats(config => config.Url("nats://localhost:4222"));
});

...

var app = builder.Build();
app.StartNatsServerAsync(); // When you want to create NatsHost
app.Run();

That All, enjoy your moment!

Package Name Description .NET Version Document
OfX OfX core 8.0, 9.0 ReadMe
OfX-EFCore This is the OfX extension package using EntityFramework to fetch data 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-Nats OfX-Nats is an extension package for OfX that leverages Nats for efficient data transportation. 8.0, 9.0 This Document

Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
4.0.0 28 2/4/2025
3.3.3 28 2/4/2025
3.3.2 32 2/3/2025
3.3.1 31 2/1/2025
3.3.0 58 1/22/2025
3.2.1 60 1/22/2025
3.2.0 65 1/21/2025
3.1.13 66 1/18/2025
3.1.12 79 1/16/2025
3.1.11 64 1/13/2025
3.1.10 68 1/12/2025
3.1.9 71 1/10/2025
3.1.8 47 1/8/2025
3.1.7 63 1/7/2025
3.1.6 71 1/6/2025
3.1.5 70 1/5/2025
3.1.4 81 1/4/2025
3.1.3 86 1/4/2025
3.1.2 88 1/4/2025