Beispiel #1
0
 /// <summary>
 /// Creates new instance
 /// </summary>
 /// <param name="name">Name of the document</param>
 /// <param name="url">Url of the document</param>
 /// <param name="httpGet">Http response for <paramref name="url"/></param>
 public CrawlerDownloadDocumentModel(NameModel name, String url, HttpModel httpGet)
 {
     this.Name    = name;
     this.Url     = url;
     this.HttpGet = httpGet;
 }
Beispiel #2
0
 /// <summary>
 /// Free any resources holded as references (like the <see cref="HttpGet"/> property)
 /// </summary>
 public void FreeResource() => this.HttpGet = null;
Beispiel #3
0
 /// <summary>
 /// Creates new document
 /// </summary>
 /// <param name="name">Name of the document</param>
 /// <param name="url">Url of the document</param>
 /// <param name="httpGet">Http response for the <paramref name="url"/></param>
 /// <returns></returns>
 public static CrawlerDownloadDocumentModel Create(NameModel name, String url, HttpModel httpGet)
 {
     return(new CrawlerDownloadDocumentModel(name, url, httpGet));
 }