YMJake.Aspire.Apollo.Configuration 1.0.2

dotnet add package YMJake.Aspire.Apollo.Configuration --version 1.0.2
                    
NuGet\Install-Package YMJake.Aspire.Apollo.Configuration -Version 1.0.2
                    
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="YMJake.Aspire.Apollo.Configuration" Version="1.0.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="YMJake.Aspire.Apollo.Configuration" Version="1.0.2" />
                    
Directory.Packages.props
<PackageReference Include="YMJake.Aspire.Apollo.Configuration" />
                    
Project file
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 YMJake.Aspire.Apollo.Configuration --version 1.0.2
                    
#r "nuget: YMJake.Aspire.Apollo.Configuration, 1.0.2"
                    
#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.
#:package YMJake.Aspire.Apollo.Configuration@1.0.2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=YMJake.Aspire.Apollo.Configuration&version=1.0.2
                    
Install as a Cake Addin
#tool nuget:?package=YMJake.Aspire.Apollo.Configuration&version=1.0.2
                    
Install as a Cake Tool

Aspire Apollo libraries

Two NuGet packages to run Apollo Configuration Center with .NET Aspire and consume it from your services.

Packages

  • YMJake.Aspire.Hosting.Apollo: AppHost extensions to start Apollo (configservice, adminservice, portal) plus MySQL with bundled init SQL.
  • YMJake.Aspire.Apollo.Configuration: Application-side extensions to load Apollo config, tracing, and health checks.

Quick start

AppHost

using Aspire.Hosting.Apollo;

var builder = DistributedApplication.CreateBuilder(args);

var apollo = builder.AddApollo("apollo", options =>
{
    options.DatabasePassword = "apollo";
    options.Env = "dev";
});

builder.AddProject<Aspire_Apollo_AspNet_Demo>("api-1")  
    .WithReference(apollo);

builder.Build().Run();

App (consumer)

appsettings.Development.json

{
  "Aspire": {
    "Apollo": {
      "apollo": {
        "AppId": "demo-app",
        "Cluster": "default",
        "Namespaces": ["application"],
        "Env": "DEV",
        "Timeout": 5000,
        "RefreshInterval": 30000
      }
    }
  }
}

Program.cs

builder.AddApolloConfiguration("apollo");

Notes

  • MySQL init scripts are packaged automatically; no extra setup needed.
  • Client auto-discovers config service via APOLLO_CONFIGSERVICE_HTTP/services:apollo-configservice:http:0 when Server is omitted.
Product Compatible and additional computed target framework versions.
.NET 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. 
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
1.0.2 85 1/5/2026
1.0.1 75 1/5/2026
1.0.0 90 1/5/2026