Method Process
Process<TElement>(IObservable<TElement>, Func<TElement, TSource>)
Writes all elements of an observable sequence to a stream.
protected IObservable<TElement> Process<TElement>(IObservable<TElement> source, Func<TElement, TSource> selector)
Parameters
source
IObservable<TElement>The sequence of elements to write.
selector
Func<TElement, TSource>The transform function used to convert each element of the sequence into the type of inputs accepted by the stream writer.
Returns
- IObservable<TElement>
An observable sequence that is identical to the source sequence but where there is an additional side effect of writing the elements to a stream.
Type Parameters
TElement
The type of the elements in the source sequence.
Exceptions
- ArgumentNullException
- InvalidOperationException
A valid path must be specified.
Process<TElement>(IObservable<TElement>, Func<TElement, TSource>, string)
Writes all elements of an observable sequence into the specified stream.
protected IObservable<TElement> Process<TElement>(IObservable<TElement> source, Func<TElement, TSource> selector, string path)
Parameters
source
IObservable<TElement>The sequence of elements to write.
selector
Func<TElement, TSource>The transform function used to convert each element of the sequence into the type of inputs accepted by the stream writer.
path
stringThe identifier of the stream on which to write the elements.
Returns
- IObservable<TElement>
An observable sequence that is identical to the source sequence but where there is an additional side effect of writing the elements to the named stream.
Type Parameters
TElement
The type of the elements in the source sequence.
Exceptions
- ArgumentNullException
- InvalidOperationException
A valid path must be specified.
Process(IObservable<TSource>)
Writes all elements of an observable sequence to the specified stream.
public virtual IObservable<TSource> Process(IObservable<TSource> source)
Parameters
source
IObservable<TSource>The sequence of elements to write.
Returns
- IObservable<TSource>
An observable sequence that is identical to the source sequence but where there is an additional side effect of writing the elements to a stream.