Fetches the port for a given spin service and port environment variable.
The name of the spin service to fetch the port for.
The name of the environment variable to fetch the port from.
The base path to look for the port file.
The port number or undefined if the port could not be found.
Fetches the port for a given spin service and port environment variable.