Click or drag to resize

NeonServiceSetConfigFile Method (String, String, Boolean)

Maps a logical configuration file path to a temporary file holding the string contents passed encoded as UTF-8. This is typically used for initializing confguration files for unit testing.

Namespace:  Neon.Service
Assembly:  Neon.Service (in Neon.Service.dll) Version: 2.10.0
Syntax
public void SetConfigFile(
	string logicalPath,
	string contents,
	bool linuxLineEndings = false
)

Parameters

logicalPath
Type: SystemString
The logical file path (typically expressed as a Linux path).
contents
Type: SystemString
The content string.
linuxLineEndings (Optional)
Type: SystemBoolean
Optionally convert any Windows style line endings (CRLF) into Linux style endings (LF). This defaults to false.
See Also