Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/FeatureFlagDemo/FeatureFlagDemo.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Azure.AppConfiguration.AspNetCore" Version="3.0.1" />
<PackageReference Include="Microsoft.Azure.AppConfiguration.AspNetCore" Version="5.1.0-preview" />
</ItemGroup>

<ItemGroup>
Expand Down
5 changes: 5 additions & 0 deletions examples/FeatureFlagDemo/Program.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT license.
//
using System;
using Microsoft.AspNetCore;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
Expand All @@ -12,6 +13,10 @@ public class Program
{
public static void Main(string[] args)
{
//
// Opt-in to use new schema with features received from Azure App Configuration
Environment.SetEnvironmentVariable("AZURE_APP_CONFIGURATION_FEATURE_MANAGEMENT_SCHEMA_VERSION", "2");

CreateWebHostBuilder(args).Build().Run();
}

Expand Down
2 changes: 2 additions & 0 deletions examples/FeatureFlagDemo/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ public void ConfigureServices(IServiceCollection services)
.AddFeatureVariantAssigner<TargetingFeatureVariantAssigner>()
.UseDisabledFeaturesHandler(new FeatureNotEnabledDisabledHandler());

services.AddAzureAppConfiguration();

services.AddMvc(o =>
{
o.Filters.AddForFeature<ThirdPartyActionFilter>(nameof(MyFeatureFlags.EnhancedPipeline));
Expand Down