Commit 72ce306 1 parent 89628a2 commit 72ce306 Copy full SHA for 72ce306
File tree 3 files changed +1
-24
lines changed
3 files changed +1
-24
lines changed Original file line number Diff line number Diff line change 18
18
<ProjectReference Include =" ..\..\src\FeatureManagement.Database.Abstractions\FeatureManagement.Database.Abstractions.csproj" />
19
19
</ItemGroup >
20
20
21
- <ItemGroup >
22
- <None Update =" appsettings.json" >
23
- <CopyToOutputDirectory >Always</CopyToOutputDirectory >
24
- </None >
25
- </ItemGroup >
26
-
27
21
</Project >
Original file line number Diff line number Diff line change 3
3
4
4
using ConsoleApp ;
5
5
using ConsoleApp . FeatureFilters ;
6
- using Microsoft . Extensions . Configuration ;
7
6
using Microsoft . Extensions . DependencyInjection ;
8
7
using Microsoft . FeatureManagement ;
9
8
10
- // Setup configuration
11
- IConfiguration configuration = new ConfigurationBuilder ( )
12
- . AddJsonFile ( "appsettings.json" )
13
- . Build ( ) ;
14
-
15
9
// Setup application services + feature management
16
10
IServiceCollection services = new ServiceCollection ( ) ;
17
11
18
- services . AddSingleton ( configuration )
19
- . AddDatabaseFeatureManagement < FeatureStore > ( ) //set 'true' to use cache
12
+ services . AddDatabaseFeatureManagement < FeatureStore > ( useCache : false ) //set 'true' to use cache (with default values)
20
13
. AddFeatureFilter < UsernameFilter > ( ) ;
21
14
22
15
// Get the feature manager from application services
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments