public static String authoritySafePath(String authority, String path) {if (authority != null && !authority.isEmpty() && !path.isEmpty() && !path.startsWith("/")) {return "/" + path;}return path;}
public static string authoritySafePath(string authority, string path){if (authority != null && !string.IsNullOrEmpty(authority) && !string.IsNullOrEmpty(path) && !path.StartsWith("/")){return "/" + path;}return path;}