public OctopusConfigurationProvider(
			OctopusConfigurationProviderOptions options,
			IVariableDictionaryProvider variableDictionaryProvider,
			string appSettingsKeyDelimiter,
			params string[] appSettingsSectionPrefixes)
		{
			if (options == null)
			{
				throw new ArgumentNullException(nameof(options));
			}
			if (variableDictionaryProvider == null)
			{
				throw new ArgumentNullException(nameof(variableDictionaryProvider));
			}

			Options = options;
			VariableDictionaryProvider = variableDictionaryProvider;
			AppSettingsKeyDelimiter = appSettingsKeyDelimiter;
			AppSettingsSectionPrefixes = appSettingsSectionPrefixes;
		}
示例#2
0
        public OctopusConfigurationProvider(
            OctopusConfigurationProviderOptions options,
            IVariableDictionaryProvider variableDictionaryProvider,
            string appSettingsKeyDelimiter,
            params string[] appSettingsSectionPrefixes)
        {
            if (options == null)
            {
                throw new ArgumentNullException(nameof(options));
            }
            if (variableDictionaryProvider == null)
            {
                throw new ArgumentNullException(nameof(variableDictionaryProvider));
            }

            Options = options;
            VariableDictionaryProvider = variableDictionaryProvider;
            AppSettingsKeyDelimiter    = appSettingsKeyDelimiter;
            AppSettingsSectionPrefixes = appSettingsSectionPrefixes;
        }