NopObserver.cs 479 B

1234567891011121314151617181920212223
  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. namespace Tests
  6. {
  7. public class NopObserver<T> : IObserver<T>
  8. {
  9. public void OnCompleted()
  10. {
  11. }
  12. public void OnError(Exception error)
  13. {
  14. }
  15. public void OnNext(T value)
  16. {
  17. }
  18. }
  19. }