<PackageReference Include="System.Reactive" Version="6.0.0-preview.9" />

SchedulerWrapper

protected readonly IScheduler _scheduler

public DateTimeOffset Now { get; }

protected SchedulerWrapper(IScheduler scheduler)

public object GetService(Type serviceType)

public IDisposable Schedule<TState>(TState state, Func<IScheduler, TState, IDisposable> action)

public IDisposable Schedule<TState>(TState state, TimeSpan dueTime, Func<IScheduler, TState, IDisposable> action)

public IDisposable Schedule<TState>(TState state, DateTimeOffset dueTime, Func<IScheduler, TState, IDisposable> action)

protected abstract bool TryGetService(IServiceProvider provider, Type serviceType, out object service)

protected virtual Func<IScheduler, TState, IDisposable> Wrap<TState>(Func<IScheduler, TState, IDisposable> action)