Aspire.Hosting.Nats 9.5.2

Aspire.Hosting.NATS library

Provides extension methods and resource definitions for a .NET Aspire AppHost to configure a NATS resource.

Getting started

Install the package

In your AppHost project, install the .NET Aspire NATS Hosting library with NuGet:

dotnet add package Aspire.Hosting.Nats

Usage example

Then, in the AppHost.cs file of AppHost, add a NATS resource and consume the connection using the following methods:

var nats = builder.AddNats("nats");

var myService = builder.AddProject<Projects.MyService>()
                       .WithReference(nats);

Additional documentation

https://learn.microsoft.com/dotnet/aspire/messaging/nats-component

Feedback & contributing

https://github.com/dotnet/aspire

No packages depend on Aspire.Hosting.Nats.

Version Downloads Last updated
9.5.2 1 11/09/2025
9.5.1 0 10/03/2025
9.5.0 0 09/25/2025
9.4.2 0 09/02/2025
9.4.1 0 08/12/2025
9.4.0 0 07/29/2025
9.3.1 0 06/10/2025
9.3.0 0 05/19/2025
9.2.1 0 04/24/2025
9.2.0 0 04/10/2025
9.1.0 0 02/25/2025
9.0.0 0 11/12/2024
9.0.0-rc.1.24511.1 0 10/15/2024
8.2.2 0 10/24/2024
8.2.1 0 09/26/2024
8.2.0 0 08/29/2024
8.1.0 0 07/23/2024
8.0.2 0 06/28/2024
8.0.1 0 05/21/2024
8.0.0 0 05/21/2024
8.0.0-preview.7.24251.11 0 05/07/2024
8.0.0-preview.6.24214.1 0 04/23/2024
8.0.0-preview.5.24201.12 0 04/09/2024