|
@@ -1,22 +1,22 @@
|
|
|
/*
|
|
/*
|
|
|
- * WARNING: Auto-generated file (5/1/2015 21:21:20)
|
|
|
|
|
|
|
+ * WARNING: Auto-generated file (05/28/2018 22:20:19)
|
|
|
* Run Rx's auto-homoiconizer tool to generate this file (in the HomoIcon directory).
|
|
* Run Rx's auto-homoiconizer tool to generate this file (in the HomoIcon directory).
|
|
|
*/
|
|
*/
|
|
|
|
|
|
|
|
#pragma warning disable 1591
|
|
#pragma warning disable 1591
|
|
|
|
|
|
|
|
using System;
|
|
using System;
|
|
|
|
|
+using System.Reactive.Concurrency;
|
|
|
using System.Collections.Generic;
|
|
using System.Collections.Generic;
|
|
|
using System.Diagnostics.CodeAnalysis;
|
|
using System.Diagnostics.CodeAnalysis;
|
|
|
|
|
+using System.Reactive.Joins;
|
|
|
using System.Linq;
|
|
using System.Linq;
|
|
|
using System.Linq.Expressions;
|
|
using System.Linq.Expressions;
|
|
|
-using System.Reactive;
|
|
|
|
|
-using System.Reactive.Concurrency;
|
|
|
|
|
-using System.Reactive.Joins;
|
|
|
|
|
-using System.Reactive.Subjects;
|
|
|
|
|
using System.Reflection;
|
|
using System.Reflection;
|
|
|
using System.Threading;
|
|
using System.Threading;
|
|
|
using System.Threading.Tasks;
|
|
using System.Threading.Tasks;
|
|
|
|
|
+using System.Reactive;
|
|
|
|
|
+using System.Reactive.Subjects;
|
|
|
|
|
|
|
|
namespace System.Reactive.Linq
|
|
namespace System.Reactive.Linq
|
|
|
{
|
|
{
|
|
@@ -37,7 +37,7 @@ namespace System.Reactive.Linq
|
|
|
{
|
|
{
|
|
|
return Qbservable.Where<TSource>(source, predicate);
|
|
return Qbservable.Where<TSource>(source, predicate);
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
/// <summary>
|
|
/// <summary>
|
|
|
/// Filters the elements of an observable sequence based on a predicate by incorporating the element's index.
|
|
/// Filters the elements of an observable sequence based on a predicate by incorporating the element's index.
|
|
|
/// Synonym for the method 'Where'
|
|
/// Synonym for the method 'Where'
|
|
@@ -52,7 +52,7 @@ namespace System.Reactive.Linq
|
|
|
{
|
|
{
|
|
|
return Qbservable.Where<TSource>(source, predicate);
|
|
return Qbservable.Where<TSource>(source, predicate);
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
/// <summary>
|
|
/// <summary>
|
|
|
/// Projects each element of an observable sequence to an observable sequence, invokes the result selector for the source element and each of the corresponding inner sequence's elements, and merges the results into one observable sequence.
|
|
/// Projects each element of an observable sequence to an observable sequence, invokes the result selector for the source element and each of the corresponding inner sequence's elements, and merges the results into one observable sequence.
|
|
|
/// Synonym for the method 'SelectMany'
|
|
/// Synonym for the method 'SelectMany'
|
|
@@ -70,7 +70,7 @@ namespace System.Reactive.Linq
|
|
|
{
|
|
{
|
|
|
return Qbservable.SelectMany<TSource, TCollection, TResult>(source, collectionSelector, resultSelector);
|
|
return Qbservable.SelectMany<TSource, TCollection, TResult>(source, collectionSelector, resultSelector);
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
/// <summary>
|
|
/// <summary>
|
|
|
/// Projects each element of an observable sequence to an observable sequence by incorporating the element's index, invokes the result selector for the source element and each of the corresponding inner sequence's elements, and merges the results into one observable sequence.
|
|
/// Projects each element of an observable sequence to an observable sequence by incorporating the element's index, invokes the result selector for the source element and each of the corresponding inner sequence's elements, and merges the results into one observable sequence.
|
|
|
/// Synonym for the method 'SelectMany'
|
|
/// Synonym for the method 'SelectMany'
|
|
@@ -88,7 +88,7 @@ namespace System.Reactive.Linq
|
|
|
{
|
|
{
|
|
|
return Qbservable.SelectMany<TSource, TCollection, TResult>(source, collectionSelector, resultSelector);
|
|
return Qbservable.SelectMany<TSource, TCollection, TResult>(source, collectionSelector, resultSelector);
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
/// <summary>
|
|
/// <summary>
|
|
|
/// Projects each element of an observable sequence to an enumerable sequence, invokes the result selector for the source element and each of the corresponding inner sequence's elements, and merges the results into one observable sequence.
|
|
/// Projects each element of an observable sequence to an enumerable sequence, invokes the result selector for the source element and each of the corresponding inner sequence's elements, and merges the results into one observable sequence.
|
|
|
/// Synonym for the method 'SelectMany'
|
|
/// Synonym for the method 'SelectMany'
|
|
@@ -102,12 +102,12 @@ namespace System.Reactive.Linq
|
|
|
/// <returns>An observable sequence whose elements are the result of invoking the one-to-many transform function collectionSelector on each element of the input sequence and then mapping each of those sequence elements and their corresponding source element to a result element.</returns>
|
|
/// <returns>An observable sequence whose elements are the result of invoking the one-to-many transform function collectionSelector on each element of the input sequence and then mapping each of those sequence elements and their corresponding source element to a result element.</returns>
|
|
|
/// <exception cref="ArgumentNullException">
|
|
/// <exception cref="ArgumentNullException">
|
|
|
/// <paramref name="source" /> or <paramref name="collectionSelector" /> or <paramref name="resultSelector" /> is null.</exception>
|
|
/// <paramref name="source" /> or <paramref name="collectionSelector" /> or <paramref name="resultSelector" /> is null.</exception>
|
|
|
- /// <remarks>The projected sequences are enumerated synchonously within the OnNext call of the source sequence. In order to do a concurrent, non-blocking merge, change the selector to return an observable sequence obtained using the <see cref="Observable.ToObservable{TSource}(IEnumerable{TSource})" /> conversion.</remarks>
|
|
|
|
|
|
|
+ /// <remarks>The projected sequences are enumerated synchonously within the OnNext call of the source sequence. In order to do a concurrent, non-blocking merge, change the selector to return an observable sequence obtained using the <see cref="M:System.Reactive.Linq.Observable.ToObservable``1(System.Collections.Generic.IEnumerable{``0})" /> conversion.</remarks>
|
|
|
public static IQbservable<TResult> FlatMap<TSource, TCollection, TResult>(this IQbservable<TSource> source, Expression<Func<TSource, IEnumerable<TCollection>>> collectionSelector, Expression<Func<TSource, TCollection, TResult>> resultSelector)
|
|
public static IQbservable<TResult> FlatMap<TSource, TCollection, TResult>(this IQbservable<TSource> source, Expression<Func<TSource, IEnumerable<TCollection>>> collectionSelector, Expression<Func<TSource, TCollection, TResult>> resultSelector)
|
|
|
{
|
|
{
|
|
|
return Qbservable.SelectMany<TSource, TCollection, TResult>(source, collectionSelector, resultSelector);
|
|
return Qbservable.SelectMany<TSource, TCollection, TResult>(source, collectionSelector, resultSelector);
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
/// <summary>
|
|
/// <summary>
|
|
|
/// Projects each element of an observable sequence to an enumerable sequence by incorporating the element's index, invokes the result selector for the source element and each of the corresponding inner sequence's elements, and merges the results into one observable sequence.
|
|
/// Projects each element of an observable sequence to an enumerable sequence by incorporating the element's index, invokes the result selector for the source element and each of the corresponding inner sequence's elements, and merges the results into one observable sequence.
|
|
|
/// Synonym for the method 'SelectMany'
|
|
/// Synonym for the method 'SelectMany'
|
|
@@ -121,12 +121,12 @@ namespace System.Reactive.Linq
|
|
|
/// <returns>An observable sequence whose elements are the result of invoking the one-to-many transform function collectionSelector on each element of the input sequence and then mapping each of those sequence elements and their corresponding source element to a result element.</returns>
|
|
/// <returns>An observable sequence whose elements are the result of invoking the one-to-many transform function collectionSelector on each element of the input sequence and then mapping each of those sequence elements and their corresponding source element to a result element.</returns>
|
|
|
/// <exception cref="ArgumentNullException">
|
|
/// <exception cref="ArgumentNullException">
|
|
|
/// <paramref name="source" /> or <paramref name="collectionSelector" /> or <paramref name="resultSelector" /> is null.</exception>
|
|
/// <paramref name="source" /> or <paramref name="collectionSelector" /> or <paramref name="resultSelector" /> is null.</exception>
|
|
|
- /// <remarks>The projected sequences are enumerated synchonously within the OnNext call of the source sequence. In order to do a concurrent, non-blocking merge, change the selector to return an observable sequence obtained using the <see cref="Observable.ToObservable{TSource}(IEnumerable{TSource})" /> conversion.</remarks>
|
|
|
|
|
|
|
+ /// <remarks>The projected sequences are enumerated synchonously within the OnNext call of the source sequence. In order to do a concurrent, non-blocking merge, change the selector to return an observable sequence obtained using the <see cref="M:System.Reactive.Linq.Observable.ToObservable``1(System.Collections.Generic.IEnumerable{``0})" /> conversion.</remarks>
|
|
|
public static IQbservable<TResult> FlatMap<TSource, TCollection, TResult>(this IQbservable<TSource> source, Expression<Func<TSource, int, IEnumerable<TCollection>>> collectionSelector, Expression<Func<TSource, int, TCollection, int, TResult>> resultSelector)
|
|
public static IQbservable<TResult> FlatMap<TSource, TCollection, TResult>(this IQbservable<TSource> source, Expression<Func<TSource, int, IEnumerable<TCollection>>> collectionSelector, Expression<Func<TSource, int, TCollection, int, TResult>> resultSelector)
|
|
|
{
|
|
{
|
|
|
return Qbservable.SelectMany<TSource, TCollection, TResult>(source, collectionSelector, resultSelector);
|
|
return Qbservable.SelectMany<TSource, TCollection, TResult>(source, collectionSelector, resultSelector);
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
/// <summary>
|
|
/// <summary>
|
|
|
/// Projects each element of the source observable sequence to the other observable sequence and merges the resulting observable sequences into one observable sequence.
|
|
/// Projects each element of the source observable sequence to the other observable sequence and merges the resulting observable sequences into one observable sequence.
|
|
|
/// Synonym for the method 'SelectMany'
|
|
/// Synonym for the method 'SelectMany'
|
|
@@ -142,7 +142,7 @@ namespace System.Reactive.Linq
|
|
|
{
|
|
{
|
|
|
return Qbservable.SelectMany<TSource, TOther>(source, other);
|
|
return Qbservable.SelectMany<TSource, TOther>(source, other);
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
/// <summary>
|
|
/// <summary>
|
|
|
/// Projects each notification of an observable sequence to an observable sequence and merges the resulting observable sequences into one observable sequence.
|
|
/// Projects each notification of an observable sequence to an observable sequence and merges the resulting observable sequences into one observable sequence.
|
|
|
/// Synonym for the method 'SelectMany'
|
|
/// Synonym for the method 'SelectMany'
|
|
@@ -160,7 +160,7 @@ namespace System.Reactive.Linq
|
|
|
{
|
|
{
|
|
|
return Qbservable.SelectMany<TSource, TResult>(source, onNext, onError, onCompleted);
|
|
return Qbservable.SelectMany<TSource, TResult>(source, onNext, onError, onCompleted);
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
/// <summary>
|
|
/// <summary>
|
|
|
/// Projects each notification of an observable sequence to an observable sequence by incorporating the element's index and merges the resulting observable sequences into one observable sequence.
|
|
/// Projects each notification of an observable sequence to an observable sequence by incorporating the element's index and merges the resulting observable sequences into one observable sequence.
|
|
|
/// Synonym for the method 'SelectMany'
|
|
/// Synonym for the method 'SelectMany'
|
|
@@ -178,7 +178,7 @@ namespace System.Reactive.Linq
|
|
|
{
|
|
{
|
|
|
return Qbservable.SelectMany<TSource, TResult>(source, onNext, onError, onCompleted);
|
|
return Qbservable.SelectMany<TSource, TResult>(source, onNext, onError, onCompleted);
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
/// <summary>
|
|
/// <summary>
|
|
|
/// Projects each element of an observable sequence to an observable sequence and merges the resulting observable sequences into one observable sequence.
|
|
/// Projects each element of an observable sequence to an observable sequence and merges the resulting observable sequences into one observable sequence.
|
|
|
/// Synonym for the method 'SelectMany'
|
|
/// Synonym for the method 'SelectMany'
|
|
@@ -194,7 +194,7 @@ namespace System.Reactive.Linq
|
|
|
{
|
|
{
|
|
|
return Qbservable.SelectMany<TSource, TResult>(source, selector);
|
|
return Qbservable.SelectMany<TSource, TResult>(source, selector);
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
/// <summary>
|
|
/// <summary>
|
|
|
/// Projects each element of an observable sequence to an observable sequence by incorporating the element's index and merges the resulting observable sequences into one observable sequence.
|
|
/// Projects each element of an observable sequence to an observable sequence by incorporating the element's index and merges the resulting observable sequences into one observable sequence.
|
|
|
/// Synonym for the method 'SelectMany'
|
|
/// Synonym for the method 'SelectMany'
|
|
@@ -210,7 +210,7 @@ namespace System.Reactive.Linq
|
|
|
{
|
|
{
|
|
|
return Qbservable.SelectMany<TSource, TResult>(source, selector);
|
|
return Qbservable.SelectMany<TSource, TResult>(source, selector);
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
/// <summary>
|
|
/// <summary>
|
|
|
/// Projects each element of an observable sequence to a task and merges all of the task results into one observable sequence.
|
|
/// Projects each element of an observable sequence to a task and merges all of the task results into one observable sequence.
|
|
|
/// Synonym for the method 'SelectMany'
|
|
/// Synonym for the method 'SelectMany'
|
|
@@ -220,14 +220,14 @@ namespace System.Reactive.Linq
|
|
|
/// <param name="source">An observable sequence of elements to project.</param>
|
|
/// <param name="source">An observable sequence of elements to project.</param>
|
|
|
/// <param name="selector">A transform function to apply to each element.</param>
|
|
/// <param name="selector">A transform function to apply to each element.</param>
|
|
|
/// <returns>An observable sequence whose elements are the result of the tasks executed for each element of the input sequence.</returns>
|
|
/// <returns>An observable sequence whose elements are the result of the tasks executed for each element of the input sequence.</returns>
|
|
|
- /// <remarks>This overload supports composition of observable sequences and tasks, without requiring manual conversion of the tasks to observable sequences using <see cref="Reactive.Threading.Tasks.TaskObservableExtensions.ToObservable{TSource}(Task{TSource})" />.</remarks>
|
|
|
|
|
|
|
+ /// <remarks>This overload supports composition of observable sequences and tasks, without requiring manual conversion of the tasks to observable sequences using <see cref="M:System.Reactive.Threading.Tasks.TaskObservableExtensions.ToObservable``1(System.Threading.Tasks.Task{``0})" />.</remarks>
|
|
|
/// <exception cref="ArgumentNullException">
|
|
/// <exception cref="ArgumentNullException">
|
|
|
/// <paramref name="source" /> or <paramref name="selector" /> is null.</exception>
|
|
/// <paramref name="source" /> or <paramref name="selector" /> is null.</exception>
|
|
|
public static IQbservable<TResult> FlatMap<TSource, TResult>(this IQbservable<TSource> source, Expression<Func<TSource, Task<TResult>>> selector)
|
|
public static IQbservable<TResult> FlatMap<TSource, TResult>(this IQbservable<TSource> source, Expression<Func<TSource, Task<TResult>>> selector)
|
|
|
{
|
|
{
|
|
|
return Qbservable.SelectMany<TSource, TResult>(source, selector);
|
|
return Qbservable.SelectMany<TSource, TResult>(source, selector);
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
/// <summary>
|
|
/// <summary>
|
|
|
/// Projects each element of an observable sequence to a task by incorporating the element's index and merges all of the task results into one observable sequence.
|
|
/// Projects each element of an observable sequence to a task by incorporating the element's index and merges all of the task results into one observable sequence.
|
|
|
/// Synonym for the method 'SelectMany'
|
|
/// Synonym for the method 'SelectMany'
|
|
@@ -237,14 +237,14 @@ namespace System.Reactive.Linq
|
|
|
/// <param name="source">An observable sequence of elements to project.</param>
|
|
/// <param name="source">An observable sequence of elements to project.</param>
|
|
|
/// <param name="selector">A transform function to apply to each element; the second parameter of the function represents the index of the source element.</param>
|
|
/// <param name="selector">A transform function to apply to each element; the second parameter of the function represents the index of the source element.</param>
|
|
|
/// <returns>An observable sequence whose elements are the result of the tasks executed for each element of the input sequence.</returns>
|
|
/// <returns>An observable sequence whose elements are the result of the tasks executed for each element of the input sequence.</returns>
|
|
|
- /// <remarks>This overload supports composition of observable sequences and tasks, without requiring manual conversion of the tasks to observable sequences using <see cref="Reactive.Threading.Tasks.TaskObservableExtensions.ToObservable{TSource}(Task{TSource})" />.</remarks>
|
|
|
|
|
|
|
+ /// <remarks>This overload supports composition of observable sequences and tasks, without requiring manual conversion of the tasks to observable sequences using <see cref="M:System.Reactive.Threading.Tasks.TaskObservableExtensions.ToObservable``1(System.Threading.Tasks.Task{``0})" />.</remarks>
|
|
|
/// <exception cref="ArgumentNullException">
|
|
/// <exception cref="ArgumentNullException">
|
|
|
/// <paramref name="source" /> or <paramref name="selector" /> is null.</exception>
|
|
/// <paramref name="source" /> or <paramref name="selector" /> is null.</exception>
|
|
|
public static IQbservable<TResult> FlatMap<TSource, TResult>(this IQbservable<TSource> source, Expression<Func<TSource, int, Task<TResult>>> selector)
|
|
public static IQbservable<TResult> FlatMap<TSource, TResult>(this IQbservable<TSource> source, Expression<Func<TSource, int, Task<TResult>>> selector)
|
|
|
{
|
|
{
|
|
|
return Qbservable.SelectMany<TSource, TResult>(source, selector);
|
|
return Qbservable.SelectMany<TSource, TResult>(source, selector);
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
/// <summary>
|
|
/// <summary>
|
|
|
/// Projects each element of an observable sequence to a task with cancellation support and merges all of the task results into one observable sequence.
|
|
/// Projects each element of an observable sequence to a task with cancellation support and merges all of the task results into one observable sequence.
|
|
|
/// Synonym for the method 'SelectMany'
|
|
/// Synonym for the method 'SelectMany'
|
|
@@ -254,14 +254,14 @@ namespace System.Reactive.Linq
|
|
|
/// <param name="source">An observable sequence of elements to project.</param>
|
|
/// <param name="source">An observable sequence of elements to project.</param>
|
|
|
/// <param name="selector">A transform function to apply to each element.</param>
|
|
/// <param name="selector">A transform function to apply to each element.</param>
|
|
|
/// <returns>An observable sequence whose elements are the result of the tasks executed for each element of the input sequence.</returns>
|
|
/// <returns>An observable sequence whose elements are the result of the tasks executed for each element of the input sequence.</returns>
|
|
|
- /// <remarks>This overload supports composition of observable sequences and tasks, without requiring manual conversion of the tasks to observable sequences using <see cref="Reactive.Threading.Tasks.TaskObservableExtensions.ToObservable{TSource}(Task{TSource})" />.</remarks>
|
|
|
|
|
|
|
+ /// <remarks>This overload supports composition of observable sequences and tasks, without requiring manual conversion of the tasks to observable sequences using <see cref="M:System.Reactive.Threading.Tasks.TaskObservableExtensions.ToObservable``1(System.Threading.Tasks.Task{``0})" />.</remarks>
|
|
|
/// <exception cref="ArgumentNullException">
|
|
/// <exception cref="ArgumentNullException">
|
|
|
/// <paramref name="source" /> or <paramref name="selector" /> is null.</exception>
|
|
/// <paramref name="source" /> or <paramref name="selector" /> is null.</exception>
|
|
|
public static IQbservable<TResult> FlatMap<TSource, TResult>(this IQbservable<TSource> source, Expression<Func<TSource, CancellationToken, Task<TResult>>> selector)
|
|
public static IQbservable<TResult> FlatMap<TSource, TResult>(this IQbservable<TSource> source, Expression<Func<TSource, CancellationToken, Task<TResult>>> selector)
|
|
|
{
|
|
{
|
|
|
return Qbservable.SelectMany<TSource, TResult>(source, selector);
|
|
return Qbservable.SelectMany<TSource, TResult>(source, selector);
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
/// <summary>
|
|
/// <summary>
|
|
|
/// Projects each element of an observable sequence to a task by incorporating the element's index with cancellation support and merges all of the task results into one observable sequence.
|
|
/// Projects each element of an observable sequence to a task by incorporating the element's index with cancellation support and merges all of the task results into one observable sequence.
|
|
|
/// Synonym for the method 'SelectMany'
|
|
/// Synonym for the method 'SelectMany'
|
|
@@ -271,14 +271,14 @@ namespace System.Reactive.Linq
|
|
|
/// <param name="source">An observable sequence of elements to project.</param>
|
|
/// <param name="source">An observable sequence of elements to project.</param>
|
|
|
/// <param name="selector">A transform function to apply to each element; the second parameter of the function represents the index of the source element.</param>
|
|
/// <param name="selector">A transform function to apply to each element; the second parameter of the function represents the index of the source element.</param>
|
|
|
/// <returns>An observable sequence whose elements are the result of the tasks executed for each element of the input sequence.</returns>
|
|
/// <returns>An observable sequence whose elements are the result of the tasks executed for each element of the input sequence.</returns>
|
|
|
- /// <remarks>This overload supports composition of observable sequences and tasks, without requiring manual conversion of the tasks to observable sequences using <see cref="Reactive.Threading.Tasks.TaskObservableExtensions.ToObservable{TSource}(Task{TSource})" />.</remarks>
|
|
|
|
|
|
|
+ /// <remarks>This overload supports composition of observable sequences and tasks, without requiring manual conversion of the tasks to observable sequences using <see cref="M:System.Reactive.Threading.Tasks.TaskObservableExtensions.ToObservable``1(System.Threading.Tasks.Task{``0})" />.</remarks>
|
|
|
/// <exception cref="ArgumentNullException">
|
|
/// <exception cref="ArgumentNullException">
|
|
|
/// <paramref name="source" /> or <paramref name="selector" /> is null.</exception>
|
|
/// <paramref name="source" /> or <paramref name="selector" /> is null.</exception>
|
|
|
public static IQbservable<TResult> FlatMap<TSource, TResult>(this IQbservable<TSource> source, Expression<Func<TSource, int, CancellationToken, Task<TResult>>> selector)
|
|
public static IQbservable<TResult> FlatMap<TSource, TResult>(this IQbservable<TSource> source, Expression<Func<TSource, int, CancellationToken, Task<TResult>>> selector)
|
|
|
{
|
|
{
|
|
|
return Qbservable.SelectMany<TSource, TResult>(source, selector);
|
|
return Qbservable.SelectMany<TSource, TResult>(source, selector);
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
/// <summary>
|
|
/// <summary>
|
|
|
/// Projects each element of an observable sequence to an enumerable sequence and concatenates the resulting enumerable sequences into one observable sequence.
|
|
/// Projects each element of an observable sequence to an enumerable sequence and concatenates the resulting enumerable sequences into one observable sequence.
|
|
|
/// Synonym for the method 'SelectMany'
|
|
/// Synonym for the method 'SelectMany'
|
|
@@ -290,12 +290,12 @@ namespace System.Reactive.Linq
|
|
|
/// <returns>An observable sequence whose elements are the result of invoking the one-to-many transform function on each element of the input sequence.</returns>
|
|
/// <returns>An observable sequence whose elements are the result of invoking the one-to-many transform function on each element of the input sequence.</returns>
|
|
|
/// <exception cref="ArgumentNullException">
|
|
/// <exception cref="ArgumentNullException">
|
|
|
/// <paramref name="source" /> or <paramref name="selector" /> is null.</exception>
|
|
/// <paramref name="source" /> or <paramref name="selector" /> is null.</exception>
|
|
|
- /// <remarks>The projected sequences are enumerated synchonously within the OnNext call of the source sequence. In order to do a concurrent, non-blocking merge, change the selector to return an observable sequence obtained using the <see cref="Observable.ToObservable{TSource}(IEnumerable{TSource})" /> conversion.</remarks>
|
|
|
|
|
|
|
+ /// <remarks>The projected sequences are enumerated synchonously within the OnNext call of the source sequence. In order to do a concurrent, non-blocking merge, change the selector to return an observable sequence obtained using the <see cref="M:System.Reactive.Linq.Observable.ToObservable``1(System.Collections.Generic.IEnumerable{``0})" /> conversion.</remarks>
|
|
|
public static IQbservable<TResult> FlatMap<TSource, TResult>(this IQbservable<TSource> source, Expression<Func<TSource, IEnumerable<TResult>>> selector)
|
|
public static IQbservable<TResult> FlatMap<TSource, TResult>(this IQbservable<TSource> source, Expression<Func<TSource, IEnumerable<TResult>>> selector)
|
|
|
{
|
|
{
|
|
|
return Qbservable.SelectMany<TSource, TResult>(source, selector);
|
|
return Qbservable.SelectMany<TSource, TResult>(source, selector);
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
/// <summary>
|
|
/// <summary>
|
|
|
/// Projects each element of an observable sequence to an enumerable sequence by incorporating the element's index and concatenates the resulting enumerable sequences into one observable sequence.
|
|
/// Projects each element of an observable sequence to an enumerable sequence by incorporating the element's index and concatenates the resulting enumerable sequences into one observable sequence.
|
|
|
/// Synonym for the method 'SelectMany'
|
|
/// Synonym for the method 'SelectMany'
|
|
@@ -307,12 +307,12 @@ namespace System.Reactive.Linq
|
|
|
/// <returns>An observable sequence whose elements are the result of invoking the one-to-many transform function on each element of the input sequence.</returns>
|
|
/// <returns>An observable sequence whose elements are the result of invoking the one-to-many transform function on each element of the input sequence.</returns>
|
|
|
/// <exception cref="ArgumentNullException">
|
|
/// <exception cref="ArgumentNullException">
|
|
|
/// <paramref name="source" /> or <paramref name="selector" /> is null.</exception>
|
|
/// <paramref name="source" /> or <paramref name="selector" /> is null.</exception>
|
|
|
- /// <remarks>The projected sequences are enumerated synchonously within the OnNext call of the source sequence. In order to do a concurrent, non-blocking merge, change the selector to return an observable sequence obtained using the <see cref="Observable.ToObservable{TSource}(IEnumerable{TSource})" /> conversion.</remarks>
|
|
|
|
|
|
|
+ /// <remarks>The projected sequences are enumerated synchonously within the OnNext call of the source sequence. In order to do a concurrent, non-blocking merge, change the selector to return an observable sequence obtained using the <see cref="M:System.Reactive.Linq.Observable.ToObservable``1(System.Collections.Generic.IEnumerable{``0})" /> conversion.</remarks>
|
|
|
public static IQbservable<TResult> FlatMap<TSource, TResult>(this IQbservable<TSource> source, Expression<Func<TSource, int, IEnumerable<TResult>>> selector)
|
|
public static IQbservable<TResult> FlatMap<TSource, TResult>(this IQbservable<TSource> source, Expression<Func<TSource, int, IEnumerable<TResult>>> selector)
|
|
|
{
|
|
{
|
|
|
return Qbservable.SelectMany<TSource, TResult>(source, selector);
|
|
return Qbservable.SelectMany<TSource, TResult>(source, selector);
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
/// <summary>
|
|
/// <summary>
|
|
|
/// Projects each element of an observable sequence to a task, invokes the result selector for the source element and the task result, and merges the results into one observable sequence.
|
|
/// Projects each element of an observable sequence to a task, invokes the result selector for the source element and the task result, and merges the results into one observable sequence.
|
|
|
/// Synonym for the method 'SelectMany'
|
|
/// Synonym for the method 'SelectMany'
|
|
@@ -326,12 +326,12 @@ namespace System.Reactive.Linq
|
|
|
/// <returns>An observable sequence whose elements are the result of obtaining a task for each element of the input sequence and then mapping the task's result and its corresponding source element to a result element.</returns>
|
|
/// <returns>An observable sequence whose elements are the result of obtaining a task for each element of the input sequence and then mapping the task's result and its corresponding source element to a result element.</returns>
|
|
|
/// <exception cref="ArgumentNullException">
|
|
/// <exception cref="ArgumentNullException">
|
|
|
/// <paramref name="source" /> or <paramref name="taskSelector" /> or <paramref name="resultSelector" /> is null.</exception>
|
|
/// <paramref name="source" /> or <paramref name="taskSelector" /> or <paramref name="resultSelector" /> is null.</exception>
|
|
|
- /// <remarks>This overload supports using LINQ query comprehension syntax in C# and Visual Basic to compose observable sequences and tasks, without requiring manual conversion of the tasks to observable sequences using <see cref="Reactive.Threading.Tasks.TaskObservableExtensions.ToObservable{TSource}(Task{TSource})" />.</remarks>
|
|
|
|
|
|
|
+ /// <remarks>This overload supports using LINQ query comprehension syntax in C# and Visual Basic to compose observable sequences and tasks, without requiring manual conversion of the tasks to observable sequences using <see cref="M:System.Reactive.Threading.Tasks.TaskObservableExtensions.ToObservable``1(System.Threading.Tasks.Task{``0})" />.</remarks>
|
|
|
public static IQbservable<TResult> FlatMap<TSource, TTaskResult, TResult>(this IQbservable<TSource> source, Expression<Func<TSource, Task<TTaskResult>>> taskSelector, Expression<Func<TSource, TTaskResult, TResult>> resultSelector)
|
|
public static IQbservable<TResult> FlatMap<TSource, TTaskResult, TResult>(this IQbservable<TSource> source, Expression<Func<TSource, Task<TTaskResult>>> taskSelector, Expression<Func<TSource, TTaskResult, TResult>> resultSelector)
|
|
|
{
|
|
{
|
|
|
return Qbservable.SelectMany<TSource, TTaskResult, TResult>(source, taskSelector, resultSelector);
|
|
return Qbservable.SelectMany<TSource, TTaskResult, TResult>(source, taskSelector, resultSelector);
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
/// <summary>
|
|
/// <summary>
|
|
|
/// Projects each element of an observable sequence to a task by incorporating the element's index, invokes the result selector for the source element and the task result, and merges the results into one observable sequence.
|
|
/// Projects each element of an observable sequence to a task by incorporating the element's index, invokes the result selector for the source element and the task result, and merges the results into one observable sequence.
|
|
|
/// Synonym for the method 'SelectMany'
|
|
/// Synonym for the method 'SelectMany'
|
|
@@ -345,12 +345,12 @@ namespace System.Reactive.Linq
|
|
|
/// <returns>An observable sequence whose elements are the result of obtaining a task for each element of the input sequence and then mapping the task's result and its corresponding source element to a result element.</returns>
|
|
/// <returns>An observable sequence whose elements are the result of obtaining a task for each element of the input sequence and then mapping the task's result and its corresponding source element to a result element.</returns>
|
|
|
/// <exception cref="ArgumentNullException">
|
|
/// <exception cref="ArgumentNullException">
|
|
|
/// <paramref name="source" /> or <paramref name="taskSelector" /> or <paramref name="resultSelector" /> is null.</exception>
|
|
/// <paramref name="source" /> or <paramref name="taskSelector" /> or <paramref name="resultSelector" /> is null.</exception>
|
|
|
- /// <remarks>This overload supports using LINQ query comprehension syntax in C# and Visual Basic to compose observable sequences and tasks, without requiring manual conversion of the tasks to observable sequences using <see cref="Reactive.Threading.Tasks.TaskObservableExtensions.ToObservable{TSource}(Task{TSource})" />.</remarks>
|
|
|
|
|
|
|
+ /// <remarks>This overload supports using LINQ query comprehension syntax in C# and Visual Basic to compose observable sequences and tasks, without requiring manual conversion of the tasks to observable sequences using <see cref="M:System.Reactive.Threading.Tasks.TaskObservableExtensions.ToObservable``1(System.Threading.Tasks.Task{``0})" />.</remarks>
|
|
|
public static IQbservable<TResult> FlatMap<TSource, TTaskResult, TResult>(this IQbservable<TSource> source, Expression<Func<TSource, int, Task<TTaskResult>>> taskSelector, Expression<Func<TSource, int, TTaskResult, TResult>> resultSelector)
|
|
public static IQbservable<TResult> FlatMap<TSource, TTaskResult, TResult>(this IQbservable<TSource> source, Expression<Func<TSource, int, Task<TTaskResult>>> taskSelector, Expression<Func<TSource, int, TTaskResult, TResult>> resultSelector)
|
|
|
{
|
|
{
|
|
|
return Qbservable.SelectMany<TSource, TTaskResult, TResult>(source, taskSelector, resultSelector);
|
|
return Qbservable.SelectMany<TSource, TTaskResult, TResult>(source, taskSelector, resultSelector);
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
/// <summary>
|
|
/// <summary>
|
|
|
/// Projects each element of an observable sequence to a task with cancellation support, invokes the result selector for the source element and the task result, and merges the results into one observable sequence.
|
|
/// Projects each element of an observable sequence to a task with cancellation support, invokes the result selector for the source element and the task result, and merges the results into one observable sequence.
|
|
|
/// Synonym for the method 'SelectMany'
|
|
/// Synonym for the method 'SelectMany'
|
|
@@ -364,12 +364,12 @@ namespace System.Reactive.Linq
|
|
|
/// <returns>An observable sequence whose elements are the result of obtaining a task for each element of the input sequence and then mapping the task's result and its corresponding source element to a result element.</returns>
|
|
/// <returns>An observable sequence whose elements are the result of obtaining a task for each element of the input sequence and then mapping the task's result and its corresponding source element to a result element.</returns>
|
|
|
/// <exception cref="ArgumentNullException">
|
|
/// <exception cref="ArgumentNullException">
|
|
|
/// <paramref name="source" /> or <paramref name="taskSelector" /> or <paramref name="resultSelector" /> is null.</exception>
|
|
/// <paramref name="source" /> or <paramref name="taskSelector" /> or <paramref name="resultSelector" /> is null.</exception>
|
|
|
- /// <remarks>This overload supports using LINQ query comprehension syntax in C# and Visual Basic to compose observable sequences and tasks, without requiring manual conversion of the tasks to observable sequences using <see cref="Reactive.Threading.Tasks.TaskObservableExtensions.ToObservable{TSource}(Task{TSource})" />.</remarks>
|
|
|
|
|
|
|
+ /// <remarks>This overload supports using LINQ query comprehension syntax in C# and Visual Basic to compose observable sequences and tasks, without requiring manual conversion of the tasks to observable sequences using <see cref="M:System.Reactive.Threading.Tasks.TaskObservableExtensions.ToObservable``1(System.Threading.Tasks.Task{``0})" />.</remarks>
|
|
|
public static IQbservable<TResult> FlatMap<TSource, TTaskResult, TResult>(this IQbservable<TSource> source, Expression<Func<TSource, CancellationToken, Task<TTaskResult>>> taskSelector, Expression<Func<TSource, TTaskResult, TResult>> resultSelector)
|
|
public static IQbservable<TResult> FlatMap<TSource, TTaskResult, TResult>(this IQbservable<TSource> source, Expression<Func<TSource, CancellationToken, Task<TTaskResult>>> taskSelector, Expression<Func<TSource, TTaskResult, TResult>> resultSelector)
|
|
|
{
|
|
{
|
|
|
return Qbservable.SelectMany<TSource, TTaskResult, TResult>(source, taskSelector, resultSelector);
|
|
return Qbservable.SelectMany<TSource, TTaskResult, TResult>(source, taskSelector, resultSelector);
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
/// <summary>
|
|
/// <summary>
|
|
|
/// Projects each element of an observable sequence to a task by incorporating the element's index with cancellation support, invokes the result selector for the source element and the task result, and merges the results into one observable sequence.
|
|
/// Projects each element of an observable sequence to a task by incorporating the element's index with cancellation support, invokes the result selector for the source element and the task result, and merges the results into one observable sequence.
|
|
|
/// Synonym for the method 'SelectMany'
|
|
/// Synonym for the method 'SelectMany'
|
|
@@ -383,12 +383,12 @@ namespace System.Reactive.Linq
|
|
|
/// <returns>An observable sequence whose elements are the result of obtaining a task for each element of the input sequence and then mapping the task's result and its corresponding source element to a result element.</returns>
|
|
/// <returns>An observable sequence whose elements are the result of obtaining a task for each element of the input sequence and then mapping the task's result and its corresponding source element to a result element.</returns>
|
|
|
/// <exception cref="ArgumentNullException">
|
|
/// <exception cref="ArgumentNullException">
|
|
|
/// <paramref name="source" /> or <paramref name="taskSelector" /> or <paramref name="resultSelector" /> is null.</exception>
|
|
/// <paramref name="source" /> or <paramref name="taskSelector" /> or <paramref name="resultSelector" /> is null.</exception>
|
|
|
- /// <remarks>This overload supports using LINQ query comprehension syntax in C# and Visual Basic to compose observable sequences and tasks, without requiring manual conversion of the tasks to observable sequences using <see cref="Reactive.Threading.Tasks.TaskObservableExtensions.ToObservable{TSource}(Task{TSource})" />.</remarks>
|
|
|
|
|
|
|
+ /// <remarks>This overload supports using LINQ query comprehension syntax in C# and Visual Basic to compose observable sequences and tasks, without requiring manual conversion of the tasks to observable sequences using <see cref="M:System.Reactive.Threading.Tasks.TaskObservableExtensions.ToObservable``1(System.Threading.Tasks.Task{``0})" />.</remarks>
|
|
|
public static IQbservable<TResult> FlatMap<TSource, TTaskResult, TResult>(this IQbservable<TSource> source, Expression<Func<TSource, int, CancellationToken, Task<TTaskResult>>> taskSelector, Expression<Func<TSource, int, TTaskResult, TResult>> resultSelector)
|
|
public static IQbservable<TResult> FlatMap<TSource, TTaskResult, TResult>(this IQbservable<TSource> source, Expression<Func<TSource, int, CancellationToken, Task<TTaskResult>>> taskSelector, Expression<Func<TSource, int, TTaskResult, TResult>> resultSelector)
|
|
|
{
|
|
{
|
|
|
return Qbservable.SelectMany<TSource, TTaskResult, TResult>(source, taskSelector, resultSelector);
|
|
return Qbservable.SelectMany<TSource, TTaskResult, TResult>(source, taskSelector, resultSelector);
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
/// <summary>
|
|
/// <summary>
|
|
|
/// Projects each element of an observable sequence into a new form. Synonym for the method 'Select'
|
|
/// Projects each element of an observable sequence into a new form. Synonym for the method 'Select'
|
|
|
/// </summary>
|
|
/// </summary>
|
|
@@ -403,7 +403,7 @@ namespace System.Reactive.Linq
|
|
|
{
|
|
{
|
|
|
return Qbservable.Select<TSource, TResult>(source, selector);
|
|
return Qbservable.Select<TSource, TResult>(source, selector);
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
/// <summary>
|
|
/// <summary>
|
|
|
/// Projects each element of an observable sequence into a new form by incorporating the element's index. Synonym for the method 'Select'
|
|
/// Projects each element of an observable sequence into a new form by incorporating the element's index. Synonym for the method 'Select'
|
|
|
/// </summary>
|
|
/// </summary>
|
|
@@ -418,7 +418,7 @@ namespace System.Reactive.Linq
|
|
|
{
|
|
{
|
|
|
return Qbservable.Select<TSource, TResult>(source, selector);
|
|
return Qbservable.Select<TSource, TResult>(source, selector);
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|