Loads environment variables formatted as NAME=VALUE from a text file as service environment variables. The file will be decrypted using NeonVault if necessary.
|Blank lines and lines beginning with '#' will be ignored.|
public void LoadEnvironmentVariables( string path, Func<string, string> passwordProvider = null )
Public Sub LoadEnvironmentVariables ( path As String, Optional passwordProvider As Func(Of String, String) = Nothing )
public: void LoadEnvironmentVariables( String^ path, Func<String^, String^>^ passwordProvider = nullptr )
member LoadEnvironmentVariables : path : string * ?passwordProvider : Func<string, string> (* Defaults: let _passwordProvider = defaultArg passwordProvider null *) -> unit
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.