diff --git a/src/OpenFeature/EventExecutor.cs b/src/OpenFeature/EventExecutor.cs index b54bd9c0..a1c1ddbd 100644 --- a/src/OpenFeature/EventExecutor.cs +++ b/src/OpenFeature/EventExecutor.cs @@ -147,7 +147,7 @@ private void StartListeningAndShutdownOld(FeatureProvider newProvider, FeaturePr if (oldProvider != null && !this.IsProviderBound(oldProvider)) { this._activeSubscriptions.Remove(oldProvider); - oldProvider.GetEventChannel()?.Writer.Complete(); + oldProvider.GetEventChannel().Writer.Complete(); } } diff --git a/src/OpenFeature/FeatureProvider.cs b/src/OpenFeature/FeatureProvider.cs index de3f2797..6aff0129 100644 --- a/src/OpenFeature/FeatureProvider.cs +++ b/src/OpenFeature/FeatureProvider.cs @@ -140,7 +140,7 @@ public virtual Task ShutdownAsync(CancellationToken cancellationToken = default) /// Returns the event channel of the provider. /// /// The event channel of the provider - public virtual Channel GetEventChannel() => this.EventChannel; + public Channel GetEventChannel() => this.EventChannel; /// /// Track a user action or application state, usually representing a business objective or outcome. The implementation of this method is optional.