Click or drag to resize

KubeServiceLoadEnvironmentVariables Method

Loads environment variables formatted as NAME=VALUE from a text file as service environment variables. The file will be decrypted using NeonVault if necessary.

Note Note
Blank lines and lines beginning with '#' will be ignored.

Namespace:  Neon.Kube.Service
Assembly:  Neon.Kube.Service (in Neon.Kube.Service.dll) Version: 2.1.0
public void LoadEnvironmentVariables(
	string path,
	Func<string, string> passwordProvider = null


Type: SystemString
The input file path.
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 the LookupPassword(String) method when passwordProvider is null.
FileNotFoundExceptionThrown if the file doesn't exist.
FormatExceptionThrown for file formatting problems.
See Also