File tree Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 55 </PropertyGroup >
66
77 <ItemGroup >
8- <PackageReference Include =" Microsoft.Azure.AppConfiguration.AspNetCore" Version =" 3.0.1 " />
8+ <PackageReference Include =" Microsoft.Azure.AppConfiguration.AspNetCore" Version =" 5.1.0-preview " />
99 </ItemGroup >
1010
1111 <ItemGroup >
Original file line number Diff line number Diff line change 11// Copyright (c) Microsoft Corporation.
22// Licensed under the MIT license.
33//
4+ using System ;
45using Microsoft . AspNetCore ;
56using Microsoft . AspNetCore . Hosting ;
67using Microsoft . Extensions . Configuration ;
@@ -12,6 +13,10 @@ public class Program
1213 {
1314 public static void Main ( string [ ] args )
1415 {
16+ //
17+ // Opt-in to use new schema with features received from Azure App Configuration
18+ Environment . SetEnvironmentVariable ( "AZURE_APP_CONFIGURATION_FEATURE_MANAGEMENT_SCHEMA_VERSION" , "2" ) ;
19+
1520 CreateWebHostBuilder ( args ) . Build ( ) . Run ( ) ;
1621 }
1722
Original file line number Diff line number Diff line change @@ -63,6 +63,8 @@ public void ConfigureServices(IServiceCollection services)
6363 . AddFeatureVariantAssigner < TargetingFeatureVariantAssigner > ( )
6464 . UseDisabledFeaturesHandler ( new FeatureNotEnabledDisabledHandler ( ) ) ;
6565
66+ services . AddAzureAppConfiguration ( ) ;
67+
6668 services . AddMvc ( o =>
6769 {
6870 o . Filters . AddForFeature < ThirdPartyActionFilter > ( nameof ( MyFeatureFlags . EnhancedPipeline ) ) ;
You can’t perform that action at this time.
0 commit comments