/// <summary> /// Registra uma transformação de url /// </summary> /// <param name="transform">A função de transformação</param> public static void RegisterUrlTransformation(UrlTransformation transform) { UrlTransformations += transform; }
/// <summary> /// Adds a special case to be used by <see cref="Austin.Net.DownloadManager.TransformUrl"/>. /// </summary> /// <param name="domain">The domain in which the <paramref name="specialCase"/> will apply.</param> /// <param name="specialCase">The special <see cref="Austin.Net.UrlTransformation"/> to be called.</param> public void AddSpecialCase(string domain, UrlTransformation specialCase) { m_spcialCases.Add(domain, specialCase); }