ServiceDiscovery.Nomad
1.0.3
dotnet add package ServiceDiscovery.Nomad --version 1.0.3
NuGet\Install-Package ServiceDiscovery.Nomad -Version 1.0.3
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="ServiceDiscovery.Nomad" Version="1.0.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ServiceDiscovery.Nomad" Version="1.0.3" />
<PackageReference Include="ServiceDiscovery.Nomad" />
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 ServiceDiscovery.Nomad --version 1.0.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: ServiceDiscovery.Nomad, 1.0.3"
#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.
#addin nuget:?package=ServiceDiscovery.Nomad&version=1.0.3
#tool nuget:?package=ServiceDiscovery.Nomad&version=1.0.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
ServiceDiscovery.Nomad
Simple service discovery for .NET Aspire and Hashicorp Nomad
Usage
Add package ServiceDiscovery.Nomad to your Aspire ServiceDefaults project.
dotnet add package ServiceDiscovery.Nomad
In your Aspire ServiceDefaults project, replace the following:
~~builder.Services.AddServiceDiscovery();~~
with
builder.Services.AddNomadServiceDiscovery();
and you're good to go.
How it works
ServiceDiscovery.Nomad uses the Nomad environment variables NOMAD_ADDR_*
to connect to the correct service. Simple, right?
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | 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.
-
net9.0
- Microsoft.Extensions.ServiceDiscovery (>= 9.1.0)
- Microsoft.Extensions.ServiceDiscovery.Abstractions (>= 9.1.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.0.3 | 162 | 4/22/2025 |