DummyScheduler.cs 1.0 KB

123456789101112131415161718192021222324252627282930313233343536
  1. // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
  2. using System;
  3. using System.Reactive.Concurrency;
  4. namespace ReactiveTests.Dummies
  5. {
  6. class DummyScheduler : IScheduler
  7. {
  8. public static readonly DummyScheduler Instance = new DummyScheduler();
  9. DummyScheduler()
  10. {
  11. }
  12. public DateTimeOffset Now
  13. {
  14. get { return DateTimeOffset.MinValue; }
  15. }
  16. public IDisposable Schedule<TState>(TState state, Func<IScheduler, TState, IDisposable> action)
  17. {
  18. throw new NotImplementedException();
  19. }
  20. public IDisposable Schedule<TState>(TState state, TimeSpan dueTime, Func<IScheduler, TState, IDisposable> action)
  21. {
  22. throw new NotImplementedException();
  23. }
  24. public IDisposable Schedule<TState>(TState state, DateTimeOffset dueTime, Func<IScheduler, TState, IDisposable> action)
  25. {
  26. throw new NotImplementedException();
  27. }
  28. }
  29. }