-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a1f9ca7
commit a03f377
Showing
2 changed files
with
11 additions
and
11 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,7 +28,7 @@ public static ResolutionDetails<T> HarnessResponse<T>(string flagKey, T defaultV | |
flagKey, | ||
defaultValue); | ||
} | ||
|
||
/// <summary> | ||
/// Convert the OpenFeature EvaluationContext to a harness target. | ||
/// </summary> | ||
|
@@ -41,13 +41,13 @@ public static Target CreateTarget(EvaluationContext context) | |
{ | ||
return null; | ||
} | ||
|
||
// Get the name, if it is missing or empty return null | ||
if (context.TryGetValue("name", out var name) != true || name.IsString != true) | ||
{ | ||
return null; | ||
} | ||
|
||
// Create a target (different targets can get different results based on rules) | ||
// TODO we need to deal with target attributes | ||
// .Attributes(new Dictionary<string, string>(){{"email", "[email protected]"}}) | ||
|
@@ -56,8 +56,8 @@ public static Target CreateTarget(EvaluationContext context) | |
.Identifier(identifier.AsString) | ||
.build(); | ||
return target; | ||
|
||
} | ||
|
||
|
||
} |
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