public DependencyResolutionSettingsOption(IDependencyResolutionSettings settings) { settings.EnsureNotNull(nameof(settings)).EnsureReadOnly().EnsureNotDisabled().EnsureValid(); // _settings = settings; }
public DependencyResolutionSettings(IDependencyResolutionSettings other, bool isReadOnly = false) : this(usageCountLimitPerHandler : other.EnsureNotNull(nameof(other)).Value.UsageCountLimitPerHandler, isAdvancedLoggingEnabled : other.IsAdvancedLoggingEnabled, isReadOnly : isReadOnly) { }