Created
January 19, 2020 06:00
-
-
Save kasunkv/d751c4c1a26dae484e8881e44270522c to your computer and use it in GitHub Desktop.
Registering Percentage Filter in ConfigureServices()
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Microsoft.FeatureManagement; | |
using Microsoft.FeatureManagement.FeatureFilters; | |
namespace MusicStore.Web | |
{ | |
public class Startup | |
{ | |
... | |
public void ConfigureServices(IServiceCollection services) | |
{ | |
... | |
// Configure Feature Management | |
services | |
.AddFeatureManagement() | |
.AddFeatureFilter<PercentageFilter>(); // register PercentageFilter | |
... | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment