Dela via


DispatcherScheduler Class

Represents an object that schedules units of work on a Dispatcher.

Inheritance Hierarchy

System.Object
  System.Reactive.Concurrency.DispatcherScheduler

Namespace:  System.Reactive.Concurrency
Assembly:  System.Reactive.Windows.Threading (in System.Reactive.Windows.Threading.dll)

Syntax

'Declaration
Public Class DispatcherScheduler _
    Implements IScheduler
'Usage
Dim instance As DispatcherScheduler
public class DispatcherScheduler : IScheduler
public ref class DispatcherScheduler : IScheduler
type DispatcherScheduler =  
    class
        interface IScheduler
    end
public class DispatcherScheduler implements IScheduler

The DispatcherScheduler type exposes the following members.

Constructors

  Name Description
Public method DispatcherScheduler Constructs an DispatcherScheduler that schedules units of work on dispatcher.

Top

Properties

  Name Description
Public property Dispatcher Gets the dispatcher associated with the DispatcherScheduler.
Public propertyStatic member Instance
Public property Now Gets the scheduler's notion of current time.

Top

Methods

  Name Description
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method Schedule<TState>(TState, Func<IScheduler, TState, IDisposable>) Schedules an action to be executed on the dispatcher.
Public method Schedule<TState>(TState, DateTimeOffset, Func<IScheduler, TState, IDisposable>)
Public method Schedule<TState>(TState, TimeSpan, Func<IScheduler, TState, IDisposable>)
Public method ToString (Inherited from Object.)

Top

Extension Methods

  Name Description
Public Extension Method Schedule(Action) Overloaded. Schedules an action to be executed. (Defined by Scheduler.)
Public Extension Method Schedule(Action<Action>) Overloaded. Schedules an action to be executed recursively. (Defined by Scheduler.)
Public Extension Method Schedule(TimeSpan, Action) Overloaded. Schedules an action to be executed after dueTime. (Defined by Scheduler.)
Public Extension Method Schedule(DateTimeOffset, Action) Overloaded. Schedules an action to be executed at dueTime. (Defined by Scheduler.)
Public Extension Method Schedule(TimeSpan, Action<Action<TimeSpan>>) Overloaded. Schedules an action to be executed recursively after each dueTime. (Defined by Scheduler.)
Public Extension Method Schedule(DateTimeOffset, Action<Action<DateTimeOffset>>) Overloaded. Schedules an action to be executed after dueTime. (Defined by Scheduler.)
Public Extension Method Schedule<TState>(TState, Action<TState, Action<TState>>) Overloaded. Schedules an action to be executed recursively. (Defined by Scheduler.)
Public Extension Method Schedule<TState>(TState, TimeSpan, Action<TState, Action<TState, TimeSpan>>) Overloaded. Schedules an action to be executed recursively after each dueTime. (Defined by Scheduler.)
Public Extension Method Schedule<TState>(TState, DateTimeOffset, Action<TState, Action<TState, DateTimeOffset>>) Overloaded. Schedules an action to be executed recursively at each dueTime. (Defined by Scheduler.)

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

System.Reactive.Concurrency Namespace