【发布时间】:2011-08-25 13:52:59
【问题描述】:
我编写了一些代码,使用 IIS SEO 工具包 API 检查站点是否存在损坏的链接。代码界面美观简洁,见下图:
public interface ILinkChecker
{
/// <summary>
/// Checks links in the website containing the supplied URL and returns a LinkCheckSummary instance detailing the results.
/// </summary>
/// <param name="url">The URL.</param>
/// <returns>A LinkCheckSummary instance detailing the results of the check.</returns>
LinkCheckSummary CheckLinks(string url);
}
我可以通过检查返回的LinkCheckSummary对象来确定是否有断开的链接。
我现在想将它集成到我们的 Cruise Control CI 管道中,这样如果 LinkChecker 检测到断开的链接,构建就会断开。
我该怎么做?
【问题讨论】: