AwsFeatureFlags 0.1.7

This package has a SemVer 2.0.0 package version: 0.1.7+5d7e20fa4ed01cfabce3dab3f3875d5b6a2ba53c.
There is a newer version of this package available.
See the version list below for details.
dotnet add package AwsFeatureFlags --version 0.1.7                
NuGet\Install-Package AwsFeatureFlags -Version 0.1.7                
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="AwsFeatureFlags" Version="0.1.7" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add AwsFeatureFlags --version 0.1.7                
#r "nuget: AwsFeatureFlags, 0.1.7"                
#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.
// Install AwsFeatureFlags as a Cake Addin
#addin nuget:?package=AwsFeatureFlags&version=0.1.7

// Install AwsFeatureFlags as a Cake Tool
#tool nuget:?package=AwsFeatureFlags&version=0.1.7                

AwsFeatureFlags

Wrapper around AWS AppConfig for Simple Feature Flags.

Build

To use simply add:

var services = new ServiceCollection();
var configuration = new ConfigurationBuilder()
    .AddEnvironmentVariables()
    .AddCommandLine(args)
    .Build();

services.AddSingleton(configuration);
services.AddDefaultAWSOptions(p => p.GetService<IConfiguration>().GetAWSOptions());
services.AddFeatureFlags();

var provider = services.BuildServiceProvider();

Configuration

By default AwsFeatureFlags pulls its configuration from IConfiguration which can be configured in many ways and come from any number of sources.

Without specifying a configuration source, AwsFeatureFlags will look for a FeatureFlags section in the appsettings.json file, or other configuration source.

AwsFeatureFlags can also be configured using one of the overrides of AddFeatureFlags(), as follows:

services.AddFeatureFlags(o => myPreconfiguredOptions);

Or:

services.AddFeatureFlags(o => {
    o.ApplicationIdentifier = "myApp";
    o.EnvironmentIdentifier = "dev";
    o.ConfigurationProfileIdentifier = "default";
});

Note that you don't have to set RequiredMinimumPollIntervalInSeconds as it will default to 120 seconds (2 minutes).

Or:

services.AddFeatureFlags(p => {
    var myService = p.GetService<MyService>();
    return myService.GetOptions();
});

In all of the above cases the AddFeatureFlags() method takes care of everything that AwsFeatureFlags needs to work.

AWS Configuration

AwsFeatureFlags does use the AWSSDK.Extensions.NETCore.Setup package, and as such you will need the following somewhere in your dependency tree:

services.AddDefaultAWSOptions(p => p.GetService<IConfiguration>().GetAWSOptions());
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  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. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos 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
0.1.16 171 11/22/2023
0.1.15 36 11/21/2023
0.1.11 42 11/21/2023
0.1.10 53 11/13/2023
0.1.9 52 11/13/2023
0.1.8 48 11/13/2023
0.1.7 50 11/13/2023
0.1.3 49 11/13/2023