We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5829d60 commit fd25157Copy full SHA for fd25157
src/OpenFeature.Hosting/OpenFeatureBuilderExtensions.cs
@@ -19,15 +19,7 @@ public static partial class OpenFeatureBuilderExtensions
19
/// <returns>The <see cref="OpenFeatureBuilder"/> instance.</returns>
20
public static OpenFeatureBuilder AddHostedFeatureLifecycle(this OpenFeatureBuilder builder, Action<FeatureLifecycleStateOptions>? configureOptions = null)
21
{
22
- if (configureOptions == null)
23
- {
24
- builder.Services.Configure<FeatureLifecycleStateOptions>(cfg =>
25
26
- cfg.StartState = FeatureStartState.Starting;
27
- cfg.StopState = FeatureStopState.Stopping;
28
- });
29
- }
30
- else
+ if (configureOptions is not null)
31
32
builder.Services.Configure(configureOptions);
33
}
0 commit comments