Example #1
0
 /// <summary>
 /// Returns a uri from the used server
 /// </summary>
 /// <returns></returns>
 public Uri GetUri(string path)
 {
     return(new Uri(Protocol + "://" + ServerDomain.Trim('/') + "/" + path.Trim('/'), UriKind.Absolute));
 }
Example #2
0
 /// <summary>
 /// Returns a uri from the used server domain and protocol without trailing slash.
 /// </summary>
 /// <returns></returns>
 public Uri GetUri()
 {
     return(new Uri(Protocol + "://" + ServerDomain.Trim('/'), UriKind.Absolute));
 }