OLT.Extensions.Configuration.Flagsmith 0.1.0-beta-0005

Prefix Reserved
This is a prerelease version of OLT.Extensions.Configuration.Flagsmith.
There is a newer version of this package available.
See the version list below for details.
dotnet add package OLT.Extensions.Configuration.Flagsmith --version 0.1.0-beta-0005
                    
NuGet\Install-Package OLT.Extensions.Configuration.Flagsmith -Version 0.1.0-beta-0005
                    
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="OLT.Extensions.Configuration.Flagsmith" Version="0.1.0-beta-0005" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="OLT.Extensions.Configuration.Flagsmith" Version="0.1.0-beta-0005" />
                    
Directory.Packages.props
<PackageReference Include="OLT.Extensions.Configuration.Flagsmith" />
                    
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 OLT.Extensions.Configuration.Flagsmith --version 0.1.0-beta-0005
                    
#r "nuget: OLT.Extensions.Configuration.Flagsmith, 0.1.0-beta-0005"
                    
#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 OLT.Extensions.Configuration.Flagsmith@0.1.0-beta-0005
                    
#: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=OLT.Extensions.Configuration.Flagsmith&version=0.1.0-beta-0005&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=OLT.Extensions.Configuration.Flagsmith&version=0.1.0-beta-0005&prerelease
                    
Install as a Cake Tool

CI Quality Gate Status Nuget

.NET Core Configuration Extensions to build Flagsmith as a Configuration Provider

This library was constructed to load Flagsmith features as configuration provider within .NET Core.

CHALLENGE: Flagsmith Feature ID are all lowercase, so I used a double underscore to indicate a uppercase letter. I'm open to a better way. 😃

app__settings:jwt__secret = AppSettings:JwtSecret

Configuration Builder example
 builder
    .SetBasePath(basePath)
    .AddJsonFile("appsettings.json", optional: false, reloadOnChange: true)
    .AddJsonFile($"appsettings.{environmentName}.json", true)
    .AddEnvironmentVariables()
    .AddCommandLine(args);

#if DEBUG
  builder.AddUserSecrets<Program>();
#endif

  var config = builder.Build();

  builder.AddFlagsmith(options =>
  {
      options.ApiUrl = config.GetValue<string>("Flagsmith:ApiUrl");
      options.EnvironmentKey = config.GetValue<string>("Flagsmith:ApiKey");
      options.EnabledOnly = true;
  });

  return builder;

Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  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 was computed.  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.  net10.0 was computed.  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. 
.NET Core netcoreapp3.1 is compatible. 
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.0 401 11/30/2021
0.1.0-beta-0005 253 11/30/2021
0.1.0-beta-0004 229 11/30/2021
0.1.0-beta-0003 244 11/30/2021
0.1.0-beta-0002 1,030 11/29/2021
0.1.0-beta-0001 1,004 11/29/2021