Exemplo n.º 1
0
 /// <summary>
 /// Replace place-holders in url with values from this service
 /// </summary>
 /// <param name="url">Url to replace</param>
 /// <returns>Replaced url</returns>
 public string ReplaceUrl(string url)
 {
     return(url.Replace("###IPADDRESS###", LocalIPAddressString.UrlEncode())
            .Replace("###REMOTEIPADDRESS###", RemoteIPAddressString.UrlEncode())
            .Replace("###MACHINENAME###", FQDN.UrlEncode())
            .Replace("###VERSION###", Version.UrlEncode())
            .Replace("###GUID###", MachineGuid.UrlEncode())
            .Replace("###OSNAME###", OSName.UrlEncode())
            .Replace("###OSVERSION###", OSVersion.UrlEncode()));
 }