Skip to content

Commit

Permalink
refactor: Change OpenFeatureBuilder to class and make IsContextConfig…
Browse files Browse the repository at this point in the history
…ured public
  • Loading branch information
arttonoyan committed Oct 22, 2024
1 parent fe5e072 commit 10ea9f1
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/OpenFeature.DependencyInjection/OpenFeatureBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,16 @@ namespace OpenFeature;
/// <summary>
/// Describes a <see cref="OpenFeatureBuilder"/> backed by an <see cref="IServiceCollection"/>.
/// </summary>
/// <param name="Services">The <see cref="IServiceCollection"/> instance.</param>
public sealed record OpenFeatureBuilder(IServiceCollection Services)
/// <param name="services">The services being configured.</param>
public class OpenFeatureBuilder(IServiceCollection services)
{
/// <summary> The services being configured. </summary>
public IServiceCollection Services { get; } = services;

/// <summary>
/// Indicates whether the evaluation context has been configured.
/// This property is used to determine if specific configurations or services
/// should be initialized based on the presence of an evaluation context.
/// </summary>
internal bool IsContextConfigured { get; set; }
public bool IsContextConfigured { get; internal set; }
}

0 comments on commit 10ea9f1

Please sign in to comment.