Table of Contents

Method MulticastReconnectable

Namespace
Bonsai
Assembly
Bonsai.Core.dll

MulticastReconnectable<TSource, TResult>(IObservable<TSource>, Func<ISubject<TSource, TResult>>)

Returns a connectable observable sequence that upon connection causes the source to push results into a new fresh subject, which is created by invoking the specified subjectFactory.

public static IConnectableObservable<TResult> MulticastReconnectable<TSource, TResult>(this IObservable<TSource> source, Func<ISubject<TSource, TResult>> subjectFactory)

Parameters

source IObservable<TSource>

The source sequence whose elements will be pushed into the specified subject.

subjectFactory Func<ISubject<TSource, TResult>>

The factory function used to create the subject that notifications will be pushed into.

Returns

IConnectableObservable<TResult>

The reconnectable sequence.

Type Parameters

TSource

The type of the elements in the source sequence.

TResult

The type of the elements in the result sequence.