Method WithConfigFile
WithConfigFile(string, bool, ConfigurationFileLookupDirectory)
Specifies the name of the server configuration file.
public PortableConfigurationBuilder WithConfigFile(string filename, bool createIfDontExists = false, ConfigurationFileLookupDirectory lookupDirectories = ConfigurationFileLookupDirectory.CurrentDirectory)
Parameters
filenamestringThe name of the JSON configuration file.
createIfDontExistsboolOptional. Determines if the configuration file should be created if it doens't exists.
lookupDirectoriesConfigurationFileLookupDirectoryOptional. Specifies the directories which the IConfigurationReader should search for the configuration file.
English
Русский
Português
Español
Deutsch
中文 (简体)
日本語