diff --git a/src/Microsoft.FeatureManagement/FeatureManager.cs b/src/Microsoft.FeatureManagement/FeatureManager.cs index 55dde3f5..ef850a03 100644 --- a/src/Microsoft.FeatureManagement/FeatureManager.cs +++ b/src/Microsoft.FeatureManagement/FeatureManager.cs @@ -40,15 +40,14 @@ private class ConfigurationCacheItem /// The provider of feature flag definitions. /// Options controlling the behavior of the feature manager. /// Thrown if is null. - /// Thrown if is null. public FeatureManager( IFeatureDefinitionProvider featureDefinitionProvider, - FeatureManagementOptions options) + FeatureManagementOptions options = null) { _filterMetadataCache = new ConcurrentDictionary(); _contextualFeatureFilterCache = new ConcurrentDictionary(); _featureDefinitionProvider = featureDefinitionProvider ?? throw new ArgumentNullException(nameof(featureDefinitionProvider)); - _options = options ?? throw new ArgumentNullException(nameof(options)); + _options = options ?? new FeatureManagementOptions(); _featureFilters = Enumerable.Empty(); _sessionManagers = Enumerable.Empty(); }