Observers.cs 513 B

1234567891011121314151617
  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. namespace System.Reactive
  5. {
  6. internal sealed class NopObserver<T> : IObserver<T>
  7. {
  8. public static readonly IObserver<T> Instance = new NopObserver<T>();
  9. public void OnCompleted() { }
  10. public void OnError(Exception error) { }
  11. public void OnNext(T value) { }
  12. }
  13. }