-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds exclude logic to Targeting and Audience, adds unit test, updates…
… example to include exclude (#218) * Adds exclude logic to Targeting and Audience, adds unit test, updates example to include exclusion. Adds ComparerType for .Contains string comparison --------- Co-authored-by: Avani Gupta <avanigupta@users.noreply.github.com>
- Loading branch information
1 parent
8e8620f
commit 1fedf2c
Showing
8 changed files
with
205 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
23 changes: 23 additions & 0 deletions
23
src/Microsoft.FeatureManagement/Targeting/BasicAudience.cs
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT license. | ||
// | ||
using System.Collections.Generic; | ||
|
||
namespace Microsoft.FeatureManagement.FeatureFilters | ||
{ | ||
/// <summary> | ||
/// A basic audience definition describing a set of users and groups. | ||
/// </summary> | ||
public class BasicAudience | ||
{ | ||
/// <summary> | ||
/// Includes users in the audience by name. | ||
/// </summary> | ||
public List<string> Users { get; set; } | ||
|
||
/// <summary> | ||
/// Includes users in the audience by group name. | ||
/// </summary> | ||
public List<string> Groups { get; set; } | ||
} | ||
} |
This file contains 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
This file contains 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
This file contains 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
This file contains 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