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.14.0
public NeonService SetConfigFilePath(
	string logicalPath,
	string physicalPath,
	Func<string, string> passwordProvider = null


Type: SystemString
The logical file path (typically expressed as a Linux path).
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.

Return Value

Type: NeonService
The service instance so developers can chain fluent style calls.
FileNotFoundExceptionThrown if there's no file at physicalPath.

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