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

ReplaySubject<T>

public sealed class ReplaySubject<T> : SubjectBase<T>
Represents an object that is both an observable sequence as well as an observer. Each notification is broadcasted to all subscribed and future observers, subject to buffer trimming policies.
public ReplaySubject()

Initializes a new instance of the ReplaySubject<T> class.

public ReplaySubject(IScheduler scheduler)

Initializes a new instance of the ReplaySubject<T> class with the specified scheduler.

public ReplaySubject(int bufferSize)

Initializes a new instance of the ReplaySubject<T> class with the specified buffer size.

public ReplaySubject(int bufferSize, IScheduler scheduler)

Initializes a new instance of the ReplaySubject<T> class with the specified buffer size and scheduler.

public ReplaySubject(TimeSpan window)

Initializes a new instance of the ReplaySubject<T> class with the specified window.

public ReplaySubject(TimeSpan window, IScheduler scheduler)

Initializes a new instance of the ReplaySubject<T> class with the specified window and scheduler.

public ReplaySubject(int bufferSize, TimeSpan window)

Initializes a new instance of the ReplaySubject<T> class with the specified buffer size and window.

public ReplaySubject(int bufferSize, TimeSpan window, IScheduler scheduler)

Initializes a new instance of the ReplaySubject<T> class with the specified buffer size, window and scheduler.