コード例 #1
0
ファイル: UrlResolver.cs プロジェクト: lstern/practices
 /// <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;
 }
コード例 #2
0
ファイル: DownloadManager.cs プロジェクト: AustinWise/austin
 /// <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);
 }