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
filename
stringThe name of the JSON configuration file.
createIfDontExists
boolOptional. Determines if the configuration file should be created if it doens't exists.
lookupDirectories
ConfigurationFileLookupDirectoryOptional. Specifies the directories which the IConfigurationReader should search for the configuration file.