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.14.0
public NeonService SetConfigFile(
	string logicalPath,
	string contents,
	bool linuxLineEndings = false


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

Return Value

Type: NeonService
The service instance so developers can chain fluent style calls.
See Also