AwsFeatureFlags 0.1.11
See the version list below for details.
dotnet add package AwsFeatureFlags --version 0.1.11
NuGet\Install-Package AwsFeatureFlags -Version 0.1.11
<PackageReference Include="AwsFeatureFlags" Version="0.1.11" />
paket add AwsFeatureFlags --version 0.1.11
#r "nuget: AwsFeatureFlags, 0.1.11"
// Install AwsFeatureFlags as a Cake Addin #addin nuget:?package=AwsFeatureFlags&version=0.1.11 // Install AwsFeatureFlags as a Cake Tool #tool nuget:?package=AwsFeatureFlags&version=0.1.11
AwsFeatureFlags
Wrapper around AWS AppConfig for Simple Feature Flags.
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 | Versions 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. |
-
.NETStandard 2.0
- AWSSDK.AppConfigData (>= 3.7.200.65)
- AWSSDK.Extensions.NETCore.Setup (>= 3.7.7)
- Microsoft.Extensions.Configuration (>= 7.0.0)
- Microsoft.Extensions.Configuration.Binder (>= 7.0.4)
- Microsoft.Extensions.DependencyInjection (>= 7.0.0)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 7.0.0)
- Newtonsoft.Json (>= 13.0.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.