Click or drag to resize

NeonServiceSetConfigFilePath Method

Maps a logical configuration file path to an actual file on the local machine. This is used for unit testing to map a file on the local workstation to the path where the service expects the find to be.

Namespace:  Neon.Service
Assembly:  Neon.Service (in Neon.Service.dll) Version: 2.10.0
Syntax
public void SetConfigFilePath(
	string logicalPath,
	string physicalPath,
	Func<string, string> passwordProvider = null
)

Parameters

logicalPath
Type: SystemString
The logical file path (typically expressed as a Linux path).
physicalPath
Type: SystemString
The physical path to the file on the local workstation.
passwordProvider (Optional)
Type: SystemFuncString, String
Optionally specifies the password provider function to be used to locate the password required to decrypt the source file when necessary. The password will use a default password provider passwordProvider is null. See the remarks below.
Exceptions
ExceptionCondition
FileNotFoundExceptionThrown if there's no file at physicalPath.
Remarks

The default password provider assumes that you have neonDESKTOP installed and may be specifying passwords in the `~/.neonkube/passwords` folder (relative to the current user's home directory). This will be harmless if you don't have neonDESKTOP installed; it just probably won't find any passwords.

Implement a custom password provider function if you need something different.

See Also