public ReportItem(SiteItem item) { this.URL = item.FullURL; this.LocalPath = item.LocalFilePath; this.Source = item.Source; this.Result = item.Status.ToString().ToLowerInvariant(); this.Message = item.StatusMessage; this.Exception = item.StatusException; }
public string AddLink(string url, string source, string sourceElement) { url = UrlHelper.MakeAbsolute(source ?? baseUrl, url); string id = UrlHelper.Standardize(url); SiteItem item = state.GetOrAdd(id, new SiteItem(id, baseUrl, url, source, sourceElement)); ItemAdded.Trigger(this, new ItemAddedEventArgs(item.ID)); return(item.ID); }