MSDN Library

Observable.Replay<TSource, TResult> Method (IObservable<TSource>, Func<IObservable<TSource>, IObservable<TResult>>, TimeSpan, IScheduler)

March 22, 2012

Returns an observable sequence that is the result of invoking the selector on a connectable observable sequence that shares a single subscription to the underlying source replaying all notifications within window.

Namespace:  Microsoft.Phone.Reactive
Assembly:  Microsoft.Phone.Reactive (in Microsoft.Phone.Reactive.dll)

public static IObservable<TResult> Replay<TSource, TResult>(
	this IObservable<TSource> source,
	Func<IObservable<TSource>, IObservable<TResult>> selector,
	TimeSpan window,
	IScheduler scheduler
)

Type Parameters

TSource
TResult

Parameters

source
Type: System.IObservable<TSource>
selector
Type: System.Func<IObservable<TSource>, IObservable<TResult>>
window
Type: System.TimeSpan
scheduler
Type: Microsoft.Phone.Reactive.IScheduler

Return Value

Type: System.IObservable<TResult>
Returns IObservable<T>.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IObservable<TSource>. When you use instance method syntax to call this method, omit the first parameter.

Windows Phone OS

Supported in: 7.1, 7.0

Windows Phone

Show:
© 2016 Microsoft