MyDotey.SCF.Apollo 1.2.2

There is a newer version of this package available.
See the version list below for details.
Install-Package MyDotey.SCF.Apollo -Version 1.2.2
dotnet add package MyDotey.SCF.Apollo --version 1.2.2
<PackageReference Include="MyDotey.SCF.Apollo" Version="1.2.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MyDotey.SCF.Apollo --version 1.2.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: MyDotey.SCF.Apollo, 1.2.2"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install MyDotey.SCF.Apollo as a Cake Addin
#addin nuget:?package=MyDotey.SCF.Apollo&version=1.2.2

// Install MyDotey.SCF.Apollo as a Cake Tool
#tool nuget:?package=MyDotey.SCF.Apollo&version=1.2.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

SCF Apollo Configuration Source

NuGet Package

dotnet add package MyDotey.SCF.Apollo --version 1.2.2

Or use a single meta package

dotnet add package MyDotey.SCF.Bom -v 1.5.2


public virtual void TestDemo()
    // create an apollo config
    IConfig appConfig = ApolloConfigurationManager.GetAppConfig().Result;

    // create a scf apollo configuration source
    ApolloConfigurationSourceConfig sourceConfig = new ApolloConfigurationSourceConfig.Builder()
    ApolloConfigurationSource source = new ApolloConfigurationSource(sourceConfig);

    // create scf manager & properties facade tool
    ConfigurationManagerConfig managerConfig = ConfigurationManagers.NewConfigBuilder()
        .SetName("my-app").AddSource(1, source).Build();
    IConfigurationManager manager = ConfigurationManagers.NewManager(managerConfig);
    StringProperties properties = new StringProperties(manager);

    // use properties
    IProperty<string, string> appName = properties.GetStringProperty("", "unknown");
    Console.WriteLine("app name: " + appName.Value);

    // add listener for dynamic property
    IProperty<string, int?> requestTimeout = properties.GetIntProperty("request.timeout", 1000);
    Console.WriteLine("request timeout: " + requestTimeout.Value);
    requestTimeout.OnChange += (o, e) => Console.WriteLine("do something");

NuGet packages (1)

Showing the top 1 NuGet packages that depend on MyDotey.SCF.Apollo:

Package Downloads

SCF, short for Simple Configuration Facade, an abstraction between code and outer configuration

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.6.0 380 11/9/2019
1.2.2 513 1/10/2019
1.2.1 537 11/13/2018
1.2.0 571 9/1/2018
1.1.1 554 8/25/2018
1.1.0 523 8/19/2018

SCF Apollo Configuration Source