Skip to content

Commit a1d0119

Browse files
committed
Undo potentially breaking internal and record usage
1 parent 842a037 commit a1d0119

File tree

2 files changed

+14
-11
lines changed

2 files changed

+14
-11
lines changed

src/Octopus.OpenFeature.Provider/IsExternalInit.cs

Lines changed: 0 additions & 3 deletions
This file was deleted.

src/Octopus.OpenFeature.Provider/OctopusFeatureClient.cs

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,26 @@
55

66
namespace Octopus.OpenFeature.Provider;
77

8-
internal class FeatureToggles(FeatureToggleEvaluation[] evaluations, byte[] contentHash)
8+
public class FeatureToggles(FeatureToggleEvaluation[] evaluations, byte[] contentHash)
99
{
1010
public FeatureToggleEvaluation[] Evaluations { get; } = evaluations;
1111

1212
public byte[] ContentHash { get; } = contentHash;
1313
}
1414

15-
internal record FeatureToggleEvaluation(
16-
string Slug,
17-
bool IsEnabled,
18-
string? EvaluationKey,
19-
KeyValuePair<string, string>[]? Segments,
20-
int? ClientRolloutPercentage
21-
);
15+
public class FeatureToggleEvaluation(
16+
string slug,
17+
bool isEnabled,
18+
string? evaluationKey,
19+
KeyValuePair<string, string>[]? segments,
20+
int? clientRolloutPercentage)
21+
{
22+
public string Slug { get; } = slug;
23+
public bool IsEnabled { get; } = isEnabled;
24+
public string? EvaluationKey { get; } = evaluationKey;
25+
public KeyValuePair<string, string>[]? Segments { get; } = segments;
26+
public int? ClientRolloutPercentage { get; } = clientRolloutPercentage;
27+
}
2228

2329
interface IOctopusFeatureClient
2430
{

0 commit comments

Comments
 (0)