Skip to content

,System.Linq.Expressions.Expression{System.Func{System.IObservable{--0},System.IObservable{--1}}})} ,System.Linq.Expressions.Expression{System.Func{System.IObservable{--0},System.IObservable{--1}}},System.Int32)} ,System.Linq.Expressions.Expression{System.Func{System.IObservable{--0},System.IObservable{--1}}},System.Int32,System.Reactive.Concurrency.IScheduler)} ,System.Linq.Expressions.Expression{System.Func{System.IObservable{--0},System.IObservable{--1}}},System.Int32,System.TimeSpan)} ,System.Linq.Expressions.Expression{System.Func{System.IObservable{--0},System.IObservable{--1}}},System.Int32,System.TimeSpan,System.Reactive.Concurrency.IScheduler)} ,System.Linq.Expressions.Expression{System.Func{System.IObservable{--0},System.IObservable{--1}}},System.Reactive.Concurrency.IScheduler)} ,System.Linq.Expressions.Expression{System.Func{System.IObservable{--0},System.IObservable{--1}}},System.TimeSpan)} ,System.Linq.Expressions.Expression{System.Func{System.IObservable{--0},System.IObservable{--1}}},System.TimeSpan,System.Reactive.Concurrency.IScheduler)}

Qbservable.Replay(IQbservable, Expression, IObservable>>) method

Defined in

Type: Qbservable Namespace: System.Reactive.Linq Assembly: System.Reactive.dll

Applies to

netstandard2.0

Overloads

  • 1. public static IQbservable<TResult> Replay<TSource, TResult>(this IQbservable<TSource> source, Expression<Func<IObservable<TSource>, IObservable<TResult>>> selector)
  • 2. public static IQbservable<TResult> Replay<TSource, TResult>(this IQbservable<TSource> source, Expression<Func<IObservable<TSource>, IObservable<TResult>>> selector, int bufferSize)
  • 3. public static IQbservable<TResult> Replay<TSource, TResult>(this IQbservable<TSource> source, Expression<Func<IObservable<TSource>, IObservable<TResult>>> selector, int bufferSize, IScheduler scheduler)
  • 4. public static IQbservable<TResult> Replay<TSource, TResult>(this IQbservable<TSource> source, Expression<Func<IObservable<TSource>, IObservable<TResult>>> selector, int bufferSize, TimeSpan window)
  • 5. public static IQbservable<TResult> Replay<TSource, TResult>(this IQbservable<TSource> source, Expression<Func<IObservable<TSource>, IObservable<TResult>>> selector, int bufferSize, TimeSpan window, IScheduler scheduler)
  • 6. public static IQbservable<TResult> Replay<TSource, TResult>(this IQbservable<TSource> source, Expression<Func<IObservable<TSource>, IObservable<TResult>>> selector, IScheduler scheduler)
  • 7. public static IQbservable<TResult> Replay<TSource, TResult>(this IQbservable<TSource> source, Expression<Func<IObservable<TSource>, IObservable<TResult>>> selector, TimeSpan window)
  • 8. public static IQbservable<TResult> Replay<TSource, TResult>(this IQbservable<TSource> source, Expression<Func<IObservable<TSource>, IObservable<TResult>>> selector, TimeSpan window, IScheduler scheduler)

1. Overload

public static IQbservable<TResult> Replay<TSource, TResult>(this IQbservable<TSource> source, Expression<Func<IObservable<TSource>, IObservable<TResult>>> selector)

Summary: 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 sequence replaying all notifications. This operator is a specialization of Multicast using a ReplaySubject.

Type parameters

NameDescription
TSourceThe type of the elements in the source sequence.
TResultThe type of the elements in the result sequence.

Parameters

NameTypeDescription
source[IQbservable](#Source sequence whose elements will be multicasted through a single shared subscription.
selectorExpression, IObservable>>Selector function which can use the multicasted source sequence as many times as needed, without causing multiple subscriptions to the source sequence. Subscribers to the given source will receive all the notifications of the source.

Returns: IQbservable -- An observable sequence that contains the elements of a sequence produced by multicasting the source sequence within a selector function.

Exceptions

TypeCondition
System.ArgumentNullExceptionsource or selector is null.

See also

2. Overload

public static IQbservable<TResult> Replay<TSource, TResult>(this IQbservable<TSource> source, Expression<Func<IObservable<TSource>, IObservable<TResult>>> selector, int bufferSize)

Summary: 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 sequence replaying notifications subject to a maximum element count for the replay buffer. This operator is a specialization of Multicast using a ReplaySubject.

Type parameters

NameDescription
TSourceThe type of the elements in the source sequence.
TResultThe type of the elements in the result sequence.

Parameters

NameTypeDescription
source[IQbservable](#Source sequence whose elements will be multicasted through a single shared subscription.
selectorExpression, IObservable>>Selector function which can use the multicasted source sequence as many times as needed, without causing multiple subscriptions to the source sequence. Subscribers to the given source will receive all the notifications of the source subject to the specified replay buffer trimming policy.
bufferSizeintMaximum element count of the replay buffer.

Returns: IQbservable -- An observable sequence that contains the elements of a sequence produced by multicasting the source sequence within a selector function.

Exceptions

TypeCondition
System.ArgumentNullExceptionsource or selector is null.
System.ArgumentOutOfRangeExceptionbufferSize is less than zero.

See also

3. Overload

public static IQbservable<TResult> Replay<TSource, TResult>(this IQbservable<TSource> source, Expression<Func<IObservable<TSource>, IObservable<TResult>>> selector, int bufferSize, IScheduler scheduler)

Summary: 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 sequence replaying notifications subject to a maximum element count for the replay buffer. This operator is a specialization of Multicast using a ReplaySubject.

Type parameters

NameDescription
TSourceThe type of the elements in the source sequence.
TResultThe type of the elements in the result sequence.

Parameters

NameTypeDescription
source[IQbservable](#Source sequence whose elements will be multicasted through a single shared subscription.
selectorExpression, IObservable>>Selector function which can use the multicasted source sequence as many times as needed, without causing multiple subscriptions to the source sequence. Subscribers to the given source will receive all the notifications of the source subject to the specified replay buffer trimming policy.
bufferSizeintMaximum element count of the replay buffer.
scheduler[IScheduler](#Scheduler where connected observers within the selector function will be invoked on.

Returns: IQbservable -- An observable sequence that contains the elements of a sequence produced by multicasting the source sequence within a selector function.

Exceptions

TypeCondition
System.ArgumentNullExceptionsource or selector or scheduler is null.
System.ArgumentOutOfRangeExceptionbufferSize is less than zero.

See also

4. Overload

public static IQbservable<TResult> Replay<TSource, TResult>(this IQbservable<TSource> source, Expression<Func<IObservable<TSource>, IObservable<TResult>>> selector, int bufferSize, TimeSpan window)

Summary: 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 sequence replaying notifications subject to a maximum time length and element count for the replay buffer. This operator is a specialization of Multicast using a ReplaySubject.

Type parameters

NameDescription
TSourceThe type of the elements in the source sequence.
TResultThe type of the elements in the result sequence.

Parameters

NameTypeDescription
source[IQbservable](#Source sequence whose elements will be multicasted through a single shared subscription.
selectorExpression, IObservable>>Selector function which can use the multicasted source sequence as many times as needed, without causing multiple subscriptions to the source sequence. Subscribers to the given source will receive all the notifications of the source subject to the specified replay buffer trimming policy.
bufferSizeintMaximum element count of the replay buffer.
windowTimeSpanMaximum time length of the replay buffer.

Returns: IQbservable -- An observable sequence that contains the elements of a sequence produced by multicasting the source sequence within a selector function.

Exceptions

TypeCondition
System.ArgumentNullExceptionsource or selector is null.
System.ArgumentOutOfRangeExceptionbufferSize is less than zero.
System.ArgumentOutOfRangeExceptionwindow is less than TimeSpan.Zero.

See also

5. Overload

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

Summary: 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 sequence replaying notifications subject to a maximum time length and element count for the replay buffer. This operator is a specialization of Multicast using a ReplaySubject.

Type parameters

NameDescription
TSourceThe type of the elements in the source sequence.
TResultThe type of the elements in the result sequence.

Parameters

NameTypeDescription
source[IQbservable](#Source sequence whose elements will be multicasted through a single shared subscription.
selectorExpression, IObservable>>Selector function which can use the multicasted source sequence as many times as needed, without causing multiple subscriptions to the source sequence. Subscribers to the given source will receive all the notifications of the source subject to the specified replay buffer trimming policy.
bufferSizeintMaximum element count of the replay buffer.
windowTimeSpanMaximum time length of the replay buffer.
scheduler[IScheduler](#Scheduler where connected observers within the selector function will be invoked on.

Returns: IQbservable -- An observable sequence that contains the elements of a sequence produced by multicasting the source sequence within a selector function.

Exceptions

TypeCondition
System.ArgumentNullExceptionsource or selector or scheduler is null.
System.ArgumentOutOfRangeExceptionbufferSize is less than zero.
System.ArgumentOutOfRangeExceptionwindow is less than TimeSpan.Zero.

See also

6. Overload

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

Summary: 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 sequence replaying all notifications. This operator is a specialization of Multicast using a ReplaySubject.

Type parameters

NameDescription
TSourceThe type of the elements in the source sequence.
TResultThe type of the elements in the result sequence.

Parameters

NameTypeDescription
source[IQbservable](#Source sequence whose elements will be multicasted through a single shared subscription.
selectorExpression, IObservable>>Selector function which can use the multicasted source sequence as many times as needed, without causing multiple subscriptions to the source sequence. Subscribers to the given source will receive all the notifications of the source.
scheduler[IScheduler](#Scheduler where connected observers within the selector function will be invoked on.

Returns: IQbservable -- An observable sequence that contains the elements of a sequence produced by multicasting the source sequence within a selector function.

Exceptions

TypeCondition
System.ArgumentNullExceptionsource or selector or scheduler is null.

See also

7. Overload

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

Summary: 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 sequence replaying notifications subject to a maximum time length for the replay buffer. This operator is a specialization of Multicast using a ReplaySubject.

Type parameters

NameDescription
TSourceThe type of the elements in the source sequence.
TResultThe type of the elements in the result sequence.

Parameters

NameTypeDescription
source[IQbservable](#Source sequence whose elements will be multicasted through a single shared subscription.
selectorExpression, IObservable>>Selector function which can use the multicasted source sequence as many times as needed, without causing multiple subscriptions to the source sequence. Subscribers to the given source will receive all the notifications of the source subject to the specified replay buffer trimming policy.
windowTimeSpanMaximum time length of the replay buffer.

Returns: IQbservable -- An observable sequence that contains the elements of a sequence produced by multicasting the source sequence within a selector function.

Exceptions

TypeCondition
System.ArgumentNullExceptionsource or selector is null.
System.ArgumentOutOfRangeExceptionwindow is less than TimeSpan.Zero.

See also

8. Overload

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

Summary: 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 sequence replaying notifications subject to a maximum time length for the replay buffer. This operator is a specialization of Multicast using a ReplaySubject.

Type parameters

NameDescription
TSourceThe type of the elements in the source sequence.
TResultThe type of the elements in the result sequence.

Parameters

NameTypeDescription
source[IQbservable](#Source sequence whose elements will be multicasted through a single shared subscription.
selectorExpression, IObservable>>Selector function which can use the multicasted source sequence as many times as needed, without causing multiple subscriptions to the source sequence. Subscribers to the given source will receive all the notifications of the source subject to the specified replay buffer trimming policy.
windowTimeSpanMaximum time length of the replay buffer.
scheduler[IScheduler](#Scheduler where connected observers within the selector function will be invoked on.

Returns: IQbservable -- An observable sequence that contains the elements of a sequence produced by multicasting the source sequence within a selector function.

Exceptions

TypeCondition
System.ArgumentNullExceptionsource or selector or scheduler is null.
System.ArgumentOutOfRangeExceptionwindow is less than TimeSpan.Zero.

See also