DummyScheduler.cs 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. // Licensed to the .NET Foundation under one or more agreements.
  2. // The .NET Foundation licenses this file to you under the MIT License.
  3. // See the LICENSE file in the project root for more information.
  4. using System;
  5. using System.Reactive.Concurrency;
  6. namespace ReactiveTests.Dummies
  7. {
  8. internal class DummyScheduler : IScheduler
  9. {
  10. public static readonly DummyScheduler Instance = new DummyScheduler();
  11. private DummyScheduler()
  12. {
  13. }
  14. public DateTimeOffset Now
  15. {
  16. get { return DateTimeOffset.MinValue; }
  17. }
  18. public IDisposable Schedule<TState>(TState state, Func<IScheduler, TState, IDisposable> action)
  19. {
  20. throw new NotImplementedException();
  21. }
  22. public IDisposable Schedule<TState>(TState state, TimeSpan dueTime, Func<IScheduler, TState, IDisposable> action)
  23. {
  24. throw new NotImplementedException();
  25. }
  26. public IDisposable Schedule<TState>(TState state, DateTimeOffset dueTime, Func<IScheduler, TState, IDisposable> action)
  27. {
  28. throw new NotImplementedException();
  29. }
  30. }
  31. }