/// <summary> /// The get ftp host. /// </summary> /// <param name="vendor"> /// The vendor. /// </param> /// <param name="region"> /// The region. /// </param> /// <returns> /// The <see cref="string"/>. /// </returns> /// <exception cref="ComputeApiException"> /// </exception> public string GetFtpHost(KnownApiVendor vendor, KnownApiRegion region) { string key = string.Concat(vendor.ToString(), '-', region.ToString()); if (!KnownFtpHostNames.ContainsKey(key)) { throw new ApiHostNotFoundException(vendor, region); } return(KnownFtpHostNames[key]); }
/// <summary> The add ftp host name. </summary> /// <remarks> Anthony, 4/24/2015. </remarks> /// <param name="vendor"> The vendor. </param> /// <param name="region"> The region. </param> /// <param name="apiUrl"> The API url. </param> private void AddFtpHostName(KnownApiVendor vendor, KnownApiRegion region, string apiUrl) { string key = string.Concat(vendor.ToString(), '-', region.ToString()); KnownFtpHostNames.Add(key, apiUrl); }