Class CrawlerRun
Container class which stores some common "run" data and the actual result collection.
Inheritance
System.Object
CrawlerRun
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Sloader.Result
Assembly: Sloader.Result.dll
Syntax
public class CrawlerRun
Constructors
View SourceCrawlerRun()
Ctor
Declaration
public CrawlerRun()
Properties
View SourceData
Actual result data as Dictionary with the given key for the given result.
Declaration
public Dictionary<string, BaseResult> Data { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.Dictionary<System.String, BaseResult> |
RunDurationInMilliseconds
Stores the loading or "run" time in ms
Declaration
public long RunDurationInMilliseconds { get; set; }
Property Value
Type | Description |
---|---|
System.Int64 |
RunOn
Stores the sloader "run" datetime
Declaration
public DateTime RunOn { get; set; }
Property Value
Type | Description |
---|---|
System.DateTime |
Methods
View SourceAddResultDataPair(String, BaseResult)
Helper method to ensure that each key is only set once in the result Data
Declaration
public void AddResultDataPair(string key, BaseResult data)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | Desired key |
BaseResult | data | Any BaseResult for this Key |
ToJson()
Serializes the object via JSON.NET
Declaration
public string ToJson()
Returns
Type | Description |
---|---|
System.String | Large JSON with "run" data and actual result data. |