Show / Hide Table of Contents

    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 Source

    CrawlerRun()

    Ctor

    Declaration
    public CrawlerRun()

    Properties

    View Source

    Data

    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>
    View Source

    RunDurationInMilliseconds

    Stores the loading or "run" time in ms

    Declaration
    public long RunDurationInMilliseconds { get; set; }
    Property Value
    Type Description
    System.Int64
    View Source

    RunOn

    Stores the sloader "run" datetime

    Declaration
    public DateTime RunOn { get; set; }
    Property Value
    Type Description
    System.DateTime

    Methods

    View Source

    AddResultDataPair(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

    View Source

    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.

    • View Source
    Back to top Sloader - MIT License