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
| { | |
| ... | |
| "FeatureManagement": { | |
| ... | |
| "Suggestion.User": { | |
| "EnabledFor": [ | |
| { |
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
| namespace MusicStore.Web | |
| { | |
| public class Startup | |
| { | |
| ... | |
| public void ConfigureServices(IServiceCollection services) | |
| { | |
| ... | |
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.AspNetCore.Http; | |
| using Microsoft.Extensions.Configuration; | |
| using Microsoft.Extensions.Logging; | |
| using Microsoft.FeatureManagement; | |
| using System; | |
| using System.Linq; | |
| using System.Threading.Tasks; | |
| namespace MusicStore.Web.FeatureManagement.Filters | |
| { |
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) |
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
| { | |
| ... | |
| "FeatureManagement": { | |
| ... | |
| "Suggestion.User": { | |
| "EnabledFor": [ | |
| { | |
| "Name": "Microsoft.TimeWindow", | |
| "Parameters": { |
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) |
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
| { | |
| ... | |
| "FeatureManagement": { | |
| ... | |
| "Suggestion.User": { | |
| "EnabledFor": [ | |
| { | |
| "Name": "Microsoft.Percentage", |
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
| { | |
| ... | |
| "FeatureManagement": { | |
| ... | |
| "Suggestion.User": { | |
| "EnabledFor": [ | |
| { | |
| "Name": "AlwaysOn" |
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
| <div class="container"> | |
| ... | |
| <div class="navbar-collapse collapse d-sm-inline-flex flex-sm-row-reverse"> | |
| <ul class="navbar-nav flex-grow-1"> | |
| ... | |
| <feature name="@Features.Promotions, @Features.PromotionDiscounts" requirement="All"> | |
| <li class="nav-item"> |
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.Mvc; | |
| namespace MusicStore.Web.Controllers | |
| { | |
| public class HomeController : Controller | |
| { | |
| ... | |
| [FeatureGate(RequirementType.All, Features.Promotions, Features.PromotionDiscounts)] | |
| public async Task<IActionResult> Promotions() |