Search Results for

    Show / Hide Table of Contents

    Class PollOptions

    Non-generic poll options that accepts IPollingJob callbacks. Use this to configure polling without depending on provider-specific job types.

    Inheritance
    object
    PollOptions
    Implements
    IPollHandler
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Glitch9.IO
    Assembly: Glitch9.IO.dll
    Syntax
    public sealed class PollOptions : IPollHandler

    Constructors

    | Edit this page View Source

    PollOptions(Action<IPollingJob, TimeSpan>, TimeSpan?, TimeSpan?)

    Declaration
    public PollOptions(Action<IPollingJob, TimeSpan> onTick = null, TimeSpan? interval = null, TimeSpan? timeout = null)
    Parameters
    Type Name Description
    Action<IPollingJob, TimeSpan> onTick
    TimeSpan? interval
    TimeSpan? timeout

    Properties

    | Edit this page View Source

    Interval

    Declaration
    public TimeSpan Interval { get; set; }
    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; set; }
    Property Value
    Type Description
    TimeSpan

    Methods

    | 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