Search Results for

    Show / Hide Table of Contents

    Class PollHandlerBase<T>

    Inheritance
    object
    PollHandlerBase<T>
    JPollHandler
    PollHandler<T>
    Implements
    IPollHandler
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Glitch9.IO
    Assembly: Glitch9.IO.dll
    Syntax
    public abstract class PollHandlerBase<T> : IPollHandler
    Type Parameters
    Name Description
    T

    Constructors

    | Edit this page View Source

    PollHandlerBase(Action<T, TimeSpan>, TimeSpan?, TimeSpan?)

    Declaration
    protected PollHandlerBase(Action<T, TimeSpan> handler = null, TimeSpan? interval = null, TimeSpan? timeout = null)
    Parameters
    Type Name Description
    Action<T, TimeSpan> handler
    TimeSpan? interval
    TimeSpan? timeout

    Properties

    | Edit this page View Source

    Interval

    Declaration
    public TimeSpan Interval { get; }
    Property Value
    Type Description
    TimeSpan
    | Edit this page View Source

    IsEmpty

    Declaration
    public bool IsEmpty { get; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    Timeout

    Declaration
    public TimeSpan Timeout { get; }
    Property Value
    Type Description
    TimeSpan

    Methods

    | Edit this page View Source

    ConvertJob(IPollingJob)

    Declaration
    protected virtual T ConvertJob(IPollingJob job)
    Parameters
    Type Name Description
    IPollingJob job
    Returns
    Type Description
    T
    | Edit this page View Source

    OnTick(IPollingJob, TimeSpan)

    Called on every polling tick with the current job and elapsed time.

    Declaration
    public void OnTick(IPollingJob job, TimeSpan elapsed)
    Parameters
    Type Name Description
    IPollingJob job
    TimeSpan elapsed

    Implements

    IPollHandler

    Extension Methods

    ArrayExtensions.ToArrayOrEmpty<T>(T)
    ArrayExtensions.ToArrayOrNull<T>(T)
    EventExtensions.ToDelta<T>(T, string, int, string, bool)
    EventExtensions.ToDone<T>(T, string, int, string)
    EventExtensions.ToEvent<T>(T)
    EventExtensions.UpcastDelta<T1, T2>(T1, string, int, string, bool)
    FallbackExtensions.IsOr<TParent, TChild>(TParent, TChild)
    ResponseCastingExtensions.GetResult<T>(T)
    SystemExtensions.GetName(object)
    • Edit this page
    • View Source
    In this article
    Back to top AI DevKit Documentation