public static NephosUriComponents GetNephosHostStyleUriComponents(Uri uri, string accountName) { string str; string str1; NephosUriComponents nephosUriComponent = new NephosUriComponents(accountName); string[] uriPathSubStrings = HttpRequestAccessor.GetUriPathSubStrings(uri, 2); NephosUriComponents nephosUriComponent1 = nephosUriComponent; if ((int)uriPathSubStrings.Length > 0) { str = HttpRequestAccessorCommon.TrimEndSlash(uriPathSubStrings[0]); } else { str = null; } nephosUriComponent1.ContainerName = str; NephosUriComponents nephosUriComponent2 = nephosUriComponent; if ((int)uriPathSubStrings.Length > 1) { str1 = HttpRequestAccessorCommon.TrimEndSlash(uriPathSubStrings[1]); } else { str1 = null; } nephosUriComponent2.RemainingPart = str1; return(nephosUriComponent); }
public static void GetContainerNameAndRemainingPart(Uri uri, UriStyle uriStyle, out string containerName, out string remainingPart) { containerName = null; remainingPart = null; int num = (uriStyle == UriStyle.PathStyle ? 1 : 0); string[] uriPathSubStrings = HttpRequestAccessor.GetUriPathSubStrings(uri, num + 2); if (uriPathSubStrings != null && (int)uriPathSubStrings.Length > num) { containerName = uriPathSubStrings[num]; if ((int)uriPathSubStrings.Length > num + 1) { remainingPart = uriPathSubStrings[num + 1]; } } }
public static NephosUriComponents GetNephosPathStyleUriComponents(Uri uri) { string str; string str1; string str2; NephosUriComponents nephosUriComponent = new NephosUriComponents() { IsUriPathStyle = true }; string[] uriPathSubStrings = HttpRequestAccessor.GetUriPathSubStrings(uri, 3); NephosUriComponents nephosUriComponent1 = nephosUriComponent; if ((int)uriPathSubStrings.Length > 0) { str = HttpRequestAccessorCommon.TrimEndSlash(uriPathSubStrings[0]); } else { str = null; } nephosUriComponent1.AccountName = str; NephosUriComponents nephosUriComponent2 = nephosUriComponent; if ((int)uriPathSubStrings.Length > 1) { str1 = HttpRequestAccessorCommon.TrimEndSlash(uriPathSubStrings[1]); } else { str1 = null; } nephosUriComponent2.ContainerName = str1; NephosUriComponents nephosUriComponent3 = nephosUriComponent; if ((int)uriPathSubStrings.Length > 2) { str2 = HttpRequestAccessorCommon.TrimEndSlash(uriPathSubStrings[2]); } else { str2 = null; } nephosUriComponent3.RemainingPart = str2; return(nephosUriComponent); }