Search Results for

    Show / Hide Table of Contents

    Class ScheduledItem<TAbsolute, TValue>

    Represents a scheduled work item based on the materialization of an IScheduler.Schedule method call.

    Inheritance
    Object
    ScheduledItem<TAbsolute>
    ScheduledItem<TAbsolute, TValue>
    Implements
    IScheduledItem<TAbsolute>
    IComparable<ScheduledItem<TAbsolute>>
    Inherited Members
    ScheduledItem<TAbsolute>.DueTime
    ScheduledItem<TAbsolute>.Invoke()
    ScheduledItem<TAbsolute>.CompareTo(ScheduledItem<TAbsolute>)
    ScheduledItem<TAbsolute>.Equals(Object)
    ScheduledItem<TAbsolute>.GetHashCode()
    ScheduledItem<TAbsolute>.Cancel()
    ScheduledItem<TAbsolute>.IsCanceled
    Object.Equals(Object, Object)
    Object.GetType()
    Object.MemberwiseClone()
    Object.ToString()
    Object.ReferenceEquals(Object, Object)
    Namespace: System.Reactive.Concurrency
    Assembly: System.Reactive.Core.dll
    Syntax
    public sealed class ScheduledItem<TAbsolute, TValue> : ScheduledItem<TAbsolute>, IScheduledItem<TAbsolute>, IComparable<ScheduledItem<TAbsolute>> where TAbsolute : IComparable<TAbsolute>
    Type Parameters
    Name Description
    TAbsolute

    Absolute time representation type.

    TValue

    Type of the state passed to the scheduled action.

    Constructors

    | Improve this Doc View Source

    ScheduledItem(IScheduler, TValue, Func<IScheduler, TValue, IDisposable>, TAbsolute)

    Creates a materialized work item.

    Declaration
    public ScheduledItem(IScheduler scheduler, TValue state, Func<IScheduler, TValue, IDisposable> action, TAbsolute dueTime)
    Parameters
    Type Name Description
    IScheduler scheduler

    Recursive scheduler to invoke the scheduled action with.

    TValue state

    State to pass to the scheduled action.

    Func<IScheduler, TValue, IDisposable> action

    Scheduled action.

    TAbsolute dueTime

    Time at which to run the scheduled action.

    Exceptions
    Type Condition
    ArgumentNullException

    scheduler or action is null.

    | Improve this Doc View Source

    ScheduledItem(IScheduler, TValue, Func<IScheduler, TValue, IDisposable>, TAbsolute, IComparer<TAbsolute>)

    Creates a materialized work item.

    Declaration
    public ScheduledItem(IScheduler scheduler, TValue state, Func<IScheduler, TValue, IDisposable> action, TAbsolute dueTime, IComparer<TAbsolute> comparer)
    Parameters
    Type Name Description
    IScheduler scheduler

    Recursive scheduler to invoke the scheduled action with.

    TValue state

    State to pass to the scheduled action.

    Func<IScheduler, TValue, IDisposable> action

    Scheduled action.

    TAbsolute dueTime

    Time at which to run the scheduled action.

    IComparer<TAbsolute> comparer

    Comparer used to compare work items based on their scheduled time.

    Exceptions
    Type Condition
    ArgumentNullException

    scheduler or action or comparer is null.

    Methods

    | Improve this Doc View Source

    InvokeCore()

    Invokes the scheduled action with the supplied recursive scheduler and state.

    Declaration
    protected override IDisposable InvokeCore()
    Returns
    Type Description
    IDisposable

    Cancellation resource returned by the scheduled action.

    Overrides
    System.Reactive.Concurrency.ScheduledItem<TAbsolute>.InvokeCore()

    Implements

    IScheduledItem<TAbsolute>
    System.IComparable<T>
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX