<PackageReference Include="System.Reactive" Version="6.0.0-preview.13" />

ISubject<TSource, TResult>

public interface ISubject<TSource, TResult> : IObserver<TSource>, IObservable<TResult>
Represents an object that is both an observable sequence as well as an observer.
using System.Runtime.CompilerServices; namespace System.Reactive.Subjects { [System.Runtime.CompilerServices.NullableContext(2)] public interface ISubject<in TSource, out TResult> : IObserver<TSource>, IObservable<TResult> { } }