IdentitySink.cs 517 B

1234567891011121314151617181920
  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. #nullable disable
  5. namespace System.Reactive
  6. {
  7. internal abstract class IdentitySink<T> : Sink<T, T>
  8. {
  9. protected IdentitySink(IObserver<T> observer) : base(observer)
  10. {
  11. }
  12. public override void OnNext(T value)
  13. {
  14. ForwardOnNext(value);
  15. }
  16. }
  17. }