DummyObservable.cs 605 B

12345678910111213141516171819202122
  1. // Licensed to the .NET Foundation under one or more agreements.
  2. // The .NET Foundation licenses this file to you under the Apache 2.0 License.
  3. // See the LICENSE file in the project root for more information.
  4. using System;
  5. namespace ReactiveTests.Dummies
  6. {
  7. internal class DummyObservable<T> : IObservable<T>
  8. {
  9. public static readonly DummyObservable<T> Instance = new DummyObservable<T>();
  10. private DummyObservable()
  11. {
  12. }
  13. public IDisposable Subscribe(IObserver<T> observer)
  14. {
  15. throw new NotImplementedException();
  16. }
  17. }
  18. }