Class WaitForDispatcherScheduler
- Namespace
- ReactiveUI
- Assembly
- ReactiveUI.dll
This scheduler attempts to deal with some of the brain-dead defaults on certain Microsoft platforms that make it difficult to access the Dispatcher during startup. This class wraps a scheduler and if it isn't available yet, it simply runs the scheduled item immediately.
public class WaitForDispatcherScheduler : IScheduler
- Inheritance
-
WaitForDispatcherScheduler
- Implements
-
IScheduler
- Extension Methods
Constructors
WaitForDispatcherScheduler(Func<IScheduler>)
Initializes a new instance of the WaitForDispatcherScheduler class.
public WaitForDispatcherScheduler(Func<IScheduler> schedulerFactory)
Parameters
schedulerFactory
Func<IScheduler>A func which will return a new scheduler.
Properties
Now
public DateTimeOffset Now { get; }
Property Value
Methods
Schedule<TState>(TState, DateTimeOffset, Func<IScheduler, TState, IDisposable>)
public IDisposable Schedule<TState>(TState state, DateTimeOffset dueTime, Func<IScheduler, TState, IDisposable> action)
Parameters
state
TStatedueTime
DateTimeOffsetaction
Func<IScheduler, TState, IDisposable>
Returns
Type Parameters
TState
Schedule<TState>(TState, Func<IScheduler, TState, IDisposable>)
public IDisposable Schedule<TState>(TState state, Func<IScheduler, TState, IDisposable> action)
Parameters
state
TStateaction
Func<IScheduler, TState, IDisposable>
Returns
Type Parameters
TState
Schedule<TState>(TState, TimeSpan, Func<IScheduler, TState, IDisposable>)
public IDisposable Schedule<TState>(TState state, TimeSpan dueTime, Func<IScheduler, TState, IDisposable> action)
Parameters
state
TStatedueTime
TimeSpanaction
Func<IScheduler, TState, IDisposable>
Returns
Type Parameters
TState