public string GetHost(ContainerConfig service)
        {
            var host = Host;

            if ((service is null || service.InDocker) && Host == "localhost")
            {
                host = "host.docker.internal";
            }

            return(host);
        }
 public string GetConnectionStringFrom(ContainerConfig service)
 {
     return("Host=" + GetHost(service) + ";Port=" + Port.ToString() + ";Database=" + DatabaseName + ";Username="******";Password=" + Password);
 }
 public string GetFullTaskLinkFrom(ContainerConfig service)
 {
     return(GetHostLinkFrom(service) + TaskActionLink);
 }
 public string GetHostLinkFrom(ContainerConfig service)
 {
     return("http://" + GetHost(service) + ":" + Port.ToString());
 }