|
@@ -11,13 +11,13 @@ using System.Reactive.Disposables;
|
|
|
|
|
|
namespace System.Reactive.Linq.ObservableImpl
|
|
|
{
|
|
|
- #region [3,16]-ary
|
|
|
+ #region [3,16]-ary
|
|
|
|
|
|
/* The following code is generated by a T4 template. */
|
|
|
|
|
|
- #region CombineLatest auto-generated code (3/8/2017 9:31:03 PM)
|
|
|
+ #region CombineLatest auto-generated code (4/13/2017 1:42:05 PM)
|
|
|
|
|
|
- class CombineLatest<T1, T2, T3, TResult> : Producer<TResult>
|
|
|
+ class CombineLatest<T1, T2, T3, TResult> : Producer<TResult>
|
|
|
{
|
|
|
private readonly IObservable<T1> _source1;
|
|
|
private readonly IObservable<T2> _source2;
|
|
@@ -59,9 +59,9 @@ namespace System.Reactive.Linq.ObservableImpl
|
|
|
for (int i = 0; i < 3; i++)
|
|
|
subscriptions[i] = new SingleAssignmentDisposable();
|
|
|
|
|
|
- _observer1 = new CombineLatestObserver<T1>(_gate, this, 0, subscriptions[0]);
|
|
|
- _observer2 = new CombineLatestObserver<T2>(_gate, this, 1, subscriptions[1]);
|
|
|
- _observer3 = new CombineLatestObserver<T3>(_gate, this, 2, subscriptions[2]);
|
|
|
+ _observer1 = new CombineLatestObserver<T1>(_gate, this, 0, subscriptions[0]);
|
|
|
+ _observer2 = new CombineLatestObserver<T2>(_gate, this, 1, subscriptions[1]);
|
|
|
+ _observer3 = new CombineLatestObserver<T3>(_gate, this, 2, subscriptions[2]);
|
|
|
|
|
|
subscriptions[0].Disposable = _parent._source1.SubscribeSafe(_observer1);
|
|
|
subscriptions[1].Disposable = _parent._source2.SubscribeSafe(_observer2);
|
|
@@ -77,7 +77,7 @@ namespace System.Reactive.Linq.ObservableImpl
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- class CombineLatest<T1, T2, T3, T4, TResult> : Producer<TResult>
|
|
|
+ class CombineLatest<T1, T2, T3, T4, TResult> : Producer<TResult>
|
|
|
{
|
|
|
private readonly IObservable<T1> _source1;
|
|
|
private readonly IObservable<T2> _source2;
|
|
@@ -122,10 +122,10 @@ namespace System.Reactive.Linq.ObservableImpl
|
|
|
for (int i = 0; i < 4; i++)
|
|
|
subscriptions[i] = new SingleAssignmentDisposable();
|
|
|
|
|
|
- _observer1 = new CombineLatestObserver<T1>(_gate, this, 0, subscriptions[0]);
|
|
|
- _observer2 = new CombineLatestObserver<T2>(_gate, this, 1, subscriptions[1]);
|
|
|
- _observer3 = new CombineLatestObserver<T3>(_gate, this, 2, subscriptions[2]);
|
|
|
- _observer4 = new CombineLatestObserver<T4>(_gate, this, 3, subscriptions[3]);
|
|
|
+ _observer1 = new CombineLatestObserver<T1>(_gate, this, 0, subscriptions[0]);
|
|
|
+ _observer2 = new CombineLatestObserver<T2>(_gate, this, 1, subscriptions[1]);
|
|
|
+ _observer3 = new CombineLatestObserver<T3>(_gate, this, 2, subscriptions[2]);
|
|
|
+ _observer4 = new CombineLatestObserver<T4>(_gate, this, 3, subscriptions[3]);
|
|
|
|
|
|
subscriptions[0].Disposable = _parent._source1.SubscribeSafe(_observer1);
|
|
|
subscriptions[1].Disposable = _parent._source2.SubscribeSafe(_observer2);
|
|
@@ -142,9 +142,7 @@ namespace System.Reactive.Linq.ObservableImpl
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-#if !NO_LARGEARITY
|
|
|
-
|
|
|
- class CombineLatest<T1, T2, T3, T4, T5, TResult> : Producer<TResult>
|
|
|
+ class CombineLatest<T1, T2, T3, T4, T5, TResult> : Producer<TResult>
|
|
|
{
|
|
|
private readonly IObservable<T1> _source1;
|
|
|
private readonly IObservable<T2> _source2;
|
|
@@ -192,11 +190,11 @@ namespace System.Reactive.Linq.ObservableImpl
|
|
|
for (int i = 0; i < 5; i++)
|
|
|
subscriptions[i] = new SingleAssignmentDisposable();
|
|
|
|
|
|
- _observer1 = new CombineLatestObserver<T1>(_gate, this, 0, subscriptions[0]);
|
|
|
- _observer2 = new CombineLatestObserver<T2>(_gate, this, 1, subscriptions[1]);
|
|
|
- _observer3 = new CombineLatestObserver<T3>(_gate, this, 2, subscriptions[2]);
|
|
|
- _observer4 = new CombineLatestObserver<T4>(_gate, this, 3, subscriptions[3]);
|
|
|
- _observer5 = new CombineLatestObserver<T5>(_gate, this, 4, subscriptions[4]);
|
|
|
+ _observer1 = new CombineLatestObserver<T1>(_gate, this, 0, subscriptions[0]);
|
|
|
+ _observer2 = new CombineLatestObserver<T2>(_gate, this, 1, subscriptions[1]);
|
|
|
+ _observer3 = new CombineLatestObserver<T3>(_gate, this, 2, subscriptions[2]);
|
|
|
+ _observer4 = new CombineLatestObserver<T4>(_gate, this, 3, subscriptions[3]);
|
|
|
+ _observer5 = new CombineLatestObserver<T5>(_gate, this, 4, subscriptions[4]);
|
|
|
|
|
|
subscriptions[0].Disposable = _parent._source1.SubscribeSafe(_observer1);
|
|
|
subscriptions[1].Disposable = _parent._source2.SubscribeSafe(_observer2);
|
|
@@ -214,7 +212,7 @@ namespace System.Reactive.Linq.ObservableImpl
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- class CombineLatest<T1, T2, T3, T4, T5, T6, TResult> : Producer<TResult>
|
|
|
+ class CombineLatest<T1, T2, T3, T4, T5, T6, TResult> : Producer<TResult>
|
|
|
{
|
|
|
private readonly IObservable<T1> _source1;
|
|
|
private readonly IObservable<T2> _source2;
|
|
@@ -265,12 +263,12 @@ namespace System.Reactive.Linq.ObservableImpl
|
|
|
for (int i = 0; i < 6; i++)
|
|
|
subscriptions[i] = new SingleAssignmentDisposable();
|
|
|
|
|
|
- _observer1 = new CombineLatestObserver<T1>(_gate, this, 0, subscriptions[0]);
|
|
|
- _observer2 = new CombineLatestObserver<T2>(_gate, this, 1, subscriptions[1]);
|
|
|
- _observer3 = new CombineLatestObserver<T3>(_gate, this, 2, subscriptions[2]);
|
|
|
- _observer4 = new CombineLatestObserver<T4>(_gate, this, 3, subscriptions[3]);
|
|
|
- _observer5 = new CombineLatestObserver<T5>(_gate, this, 4, subscriptions[4]);
|
|
|
- _observer6 = new CombineLatestObserver<T6>(_gate, this, 5, subscriptions[5]);
|
|
|
+ _observer1 = new CombineLatestObserver<T1>(_gate, this, 0, subscriptions[0]);
|
|
|
+ _observer2 = new CombineLatestObserver<T2>(_gate, this, 1, subscriptions[1]);
|
|
|
+ _observer3 = new CombineLatestObserver<T3>(_gate, this, 2, subscriptions[2]);
|
|
|
+ _observer4 = new CombineLatestObserver<T4>(_gate, this, 3, subscriptions[3]);
|
|
|
+ _observer5 = new CombineLatestObserver<T5>(_gate, this, 4, subscriptions[4]);
|
|
|
+ _observer6 = new CombineLatestObserver<T6>(_gate, this, 5, subscriptions[5]);
|
|
|
|
|
|
subscriptions[0].Disposable = _parent._source1.SubscribeSafe(_observer1);
|
|
|
subscriptions[1].Disposable = _parent._source2.SubscribeSafe(_observer2);
|
|
@@ -289,7 +287,7 @@ namespace System.Reactive.Linq.ObservableImpl
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- class CombineLatest<T1, T2, T3, T4, T5, T6, T7, TResult> : Producer<TResult>
|
|
|
+ class CombineLatest<T1, T2, T3, T4, T5, T6, T7, TResult> : Producer<TResult>
|
|
|
{
|
|
|
private readonly IObservable<T1> _source1;
|
|
|
private readonly IObservable<T2> _source2;
|
|
@@ -343,13 +341,13 @@ namespace System.Reactive.Linq.ObservableImpl
|
|
|
for (int i = 0; i < 7; i++)
|
|
|
subscriptions[i] = new SingleAssignmentDisposable();
|
|
|
|
|
|
- _observer1 = new CombineLatestObserver<T1>(_gate, this, 0, subscriptions[0]);
|
|
|
- _observer2 = new CombineLatestObserver<T2>(_gate, this, 1, subscriptions[1]);
|
|
|
- _observer3 = new CombineLatestObserver<T3>(_gate, this, 2, subscriptions[2]);
|
|
|
- _observer4 = new CombineLatestObserver<T4>(_gate, this, 3, subscriptions[3]);
|
|
|
- _observer5 = new CombineLatestObserver<T5>(_gate, this, 4, subscriptions[4]);
|
|
|
- _observer6 = new CombineLatestObserver<T6>(_gate, this, 5, subscriptions[5]);
|
|
|
- _observer7 = new CombineLatestObserver<T7>(_gate, this, 6, subscriptions[6]);
|
|
|
+ _observer1 = new CombineLatestObserver<T1>(_gate, this, 0, subscriptions[0]);
|
|
|
+ _observer2 = new CombineLatestObserver<T2>(_gate, this, 1, subscriptions[1]);
|
|
|
+ _observer3 = new CombineLatestObserver<T3>(_gate, this, 2, subscriptions[2]);
|
|
|
+ _observer4 = new CombineLatestObserver<T4>(_gate, this, 3, subscriptions[3]);
|
|
|
+ _observer5 = new CombineLatestObserver<T5>(_gate, this, 4, subscriptions[4]);
|
|
|
+ _observer6 = new CombineLatestObserver<T6>(_gate, this, 5, subscriptions[5]);
|
|
|
+ _observer7 = new CombineLatestObserver<T7>(_gate, this, 6, subscriptions[6]);
|
|
|
|
|
|
subscriptions[0].Disposable = _parent._source1.SubscribeSafe(_observer1);
|
|
|
subscriptions[1].Disposable = _parent._source2.SubscribeSafe(_observer2);
|
|
@@ -369,7 +367,7 @@ namespace System.Reactive.Linq.ObservableImpl
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- class CombineLatest<T1, T2, T3, T4, T5, T6, T7, T8, TResult> : Producer<TResult>
|
|
|
+ class CombineLatest<T1, T2, T3, T4, T5, T6, T7, T8, TResult> : Producer<TResult>
|
|
|
{
|
|
|
private readonly IObservable<T1> _source1;
|
|
|
private readonly IObservable<T2> _source2;
|
|
@@ -426,14 +424,14 @@ namespace System.Reactive.Linq.ObservableImpl
|
|
|
for (int i = 0; i < 8; i++)
|
|
|
subscriptions[i] = new SingleAssignmentDisposable();
|
|
|
|
|
|
- _observer1 = new CombineLatestObserver<T1>(_gate, this, 0, subscriptions[0]);
|
|
|
- _observer2 = new CombineLatestObserver<T2>(_gate, this, 1, subscriptions[1]);
|
|
|
- _observer3 = new CombineLatestObserver<T3>(_gate, this, 2, subscriptions[2]);
|
|
|
- _observer4 = new CombineLatestObserver<T4>(_gate, this, 3, subscriptions[3]);
|
|
|
- _observer5 = new CombineLatestObserver<T5>(_gate, this, 4, subscriptions[4]);
|
|
|
- _observer6 = new CombineLatestObserver<T6>(_gate, this, 5, subscriptions[5]);
|
|
|
- _observer7 = new CombineLatestObserver<T7>(_gate, this, 6, subscriptions[6]);
|
|
|
- _observer8 = new CombineLatestObserver<T8>(_gate, this, 7, subscriptions[7]);
|
|
|
+ _observer1 = new CombineLatestObserver<T1>(_gate, this, 0, subscriptions[0]);
|
|
|
+ _observer2 = new CombineLatestObserver<T2>(_gate, this, 1, subscriptions[1]);
|
|
|
+ _observer3 = new CombineLatestObserver<T3>(_gate, this, 2, subscriptions[2]);
|
|
|
+ _observer4 = new CombineLatestObserver<T4>(_gate, this, 3, subscriptions[3]);
|
|
|
+ _observer5 = new CombineLatestObserver<T5>(_gate, this, 4, subscriptions[4]);
|
|
|
+ _observer6 = new CombineLatestObserver<T6>(_gate, this, 5, subscriptions[5]);
|
|
|
+ _observer7 = new CombineLatestObserver<T7>(_gate, this, 6, subscriptions[6]);
|
|
|
+ _observer8 = new CombineLatestObserver<T8>(_gate, this, 7, subscriptions[7]);
|
|
|
|
|
|
subscriptions[0].Disposable = _parent._source1.SubscribeSafe(_observer1);
|
|
|
subscriptions[1].Disposable = _parent._source2.SubscribeSafe(_observer2);
|
|
@@ -454,7 +452,7 @@ namespace System.Reactive.Linq.ObservableImpl
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- class CombineLatest<T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult> : Producer<TResult>
|
|
|
+ class CombineLatest<T1, T2, T3, T4, T5, T6, T7, T8, T9, TResult> : Producer<TResult>
|
|
|
{
|
|
|
private readonly IObservable<T1> _source1;
|
|
|
private readonly IObservable<T2> _source2;
|
|
@@ -514,15 +512,15 @@ namespace System.Reactive.Linq.ObservableImpl
|
|
|
for (int i = 0; i < 9; i++)
|
|
|
subscriptions[i] = new SingleAssignmentDisposable();
|
|
|
|
|
|
- _observer1 = new CombineLatestObserver<T1>(_gate, this, 0, subscriptions[0]);
|
|
|
- _observer2 = new CombineLatestObserver<T2>(_gate, this, 1, subscriptions[1]);
|
|
|
- _observer3 = new CombineLatestObserver<T3>(_gate, this, 2, subscriptions[2]);
|
|
|
- _observer4 = new CombineLatestObserver<T4>(_gate, this, 3, subscriptions[3]);
|
|
|
- _observer5 = new CombineLatestObserver<T5>(_gate, this, 4, subscriptions[4]);
|
|
|
- _observer6 = new CombineLatestObserver<T6>(_gate, this, 5, subscriptions[5]);
|
|
|
- _observer7 = new CombineLatestObserver<T7>(_gate, this, 6, subscriptions[6]);
|
|
|
- _observer8 = new CombineLatestObserver<T8>(_gate, this, 7, subscriptions[7]);
|
|
|
- _observer9 = new CombineLatestObserver<T9>(_gate, this, 8, subscriptions[8]);
|
|
|
+ _observer1 = new CombineLatestObserver<T1>(_gate, this, 0, subscriptions[0]);
|
|
|
+ _observer2 = new CombineLatestObserver<T2>(_gate, this, 1, subscriptions[1]);
|
|
|
+ _observer3 = new CombineLatestObserver<T3>(_gate, this, 2, subscriptions[2]);
|
|
|
+ _observer4 = new CombineLatestObserver<T4>(_gate, this, 3, subscriptions[3]);
|
|
|
+ _observer5 = new CombineLatestObserver<T5>(_gate, this, 4, subscriptions[4]);
|
|
|
+ _observer6 = new CombineLatestObserver<T6>(_gate, this, 5, subscriptions[5]);
|
|
|
+ _observer7 = new CombineLatestObserver<T7>(_gate, this, 6, subscriptions[6]);
|
|
|
+ _observer8 = new CombineLatestObserver<T8>(_gate, this, 7, subscriptions[7]);
|
|
|
+ _observer9 = new CombineLatestObserver<T9>(_gate, this, 8, subscriptions[8]);
|
|
|
|
|
|
subscriptions[0].Disposable = _parent._source1.SubscribeSafe(_observer1);
|
|
|
subscriptions[1].Disposable = _parent._source2.SubscribeSafe(_observer2);
|
|
@@ -544,7 +542,7 @@ namespace System.Reactive.Linq.ObservableImpl
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- class CombineLatest<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult> : Producer<TResult>
|
|
|
+ class CombineLatest<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, TResult> : Producer<TResult>
|
|
|
{
|
|
|
private readonly IObservable<T1> _source1;
|
|
|
private readonly IObservable<T2> _source2;
|
|
@@ -607,16 +605,16 @@ namespace System.Reactive.Linq.ObservableImpl
|
|
|
for (int i = 0; i < 10; i++)
|
|
|
subscriptions[i] = new SingleAssignmentDisposable();
|
|
|
|
|
|
- _observer1 = new CombineLatestObserver<T1>(_gate, this, 0, subscriptions[0]);
|
|
|
- _observer2 = new CombineLatestObserver<T2>(_gate, this, 1, subscriptions[1]);
|
|
|
- _observer3 = new CombineLatestObserver<T3>(_gate, this, 2, subscriptions[2]);
|
|
|
- _observer4 = new CombineLatestObserver<T4>(_gate, this, 3, subscriptions[3]);
|
|
|
- _observer5 = new CombineLatestObserver<T5>(_gate, this, 4, subscriptions[4]);
|
|
|
- _observer6 = new CombineLatestObserver<T6>(_gate, this, 5, subscriptions[5]);
|
|
|
- _observer7 = new CombineLatestObserver<T7>(_gate, this, 6, subscriptions[6]);
|
|
|
- _observer8 = new CombineLatestObserver<T8>(_gate, this, 7, subscriptions[7]);
|
|
|
- _observer9 = new CombineLatestObserver<T9>(_gate, this, 8, subscriptions[8]);
|
|
|
- _observer10 = new CombineLatestObserver<T10>(_gate, this, 9, subscriptions[9]);
|
|
|
+ _observer1 = new CombineLatestObserver<T1>(_gate, this, 0, subscriptions[0]);
|
|
|
+ _observer2 = new CombineLatestObserver<T2>(_gate, this, 1, subscriptions[1]);
|
|
|
+ _observer3 = new CombineLatestObserver<T3>(_gate, this, 2, subscriptions[2]);
|
|
|
+ _observer4 = new CombineLatestObserver<T4>(_gate, this, 3, subscriptions[3]);
|
|
|
+ _observer5 = new CombineLatestObserver<T5>(_gate, this, 4, subscriptions[4]);
|
|
|
+ _observer6 = new CombineLatestObserver<T6>(_gate, this, 5, subscriptions[5]);
|
|
|
+ _observer7 = new CombineLatestObserver<T7>(_gate, this, 6, subscriptions[6]);
|
|
|
+ _observer8 = new CombineLatestObserver<T8>(_gate, this, 7, subscriptions[7]);
|
|
|
+ _observer9 = new CombineLatestObserver<T9>(_gate, this, 8, subscriptions[8]);
|
|
|
+ _observer10 = new CombineLatestObserver<T10>(_gate, this, 9, subscriptions[9]);
|
|
|
|
|
|
subscriptions[0].Disposable = _parent._source1.SubscribeSafe(_observer1);
|
|
|
subscriptions[1].Disposable = _parent._source2.SubscribeSafe(_observer2);
|
|
@@ -639,7 +637,7 @@ namespace System.Reactive.Linq.ObservableImpl
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- class CombineLatest<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, TResult> : Producer<TResult>
|
|
|
+ class CombineLatest<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, TResult> : Producer<TResult>
|
|
|
{
|
|
|
private readonly IObservable<T1> _source1;
|
|
|
private readonly IObservable<T2> _source2;
|
|
@@ -705,17 +703,17 @@ namespace System.Reactive.Linq.ObservableImpl
|
|
|
for (int i = 0; i < 11; i++)
|
|
|
subscriptions[i] = new SingleAssignmentDisposable();
|
|
|
|
|
|
- _observer1 = new CombineLatestObserver<T1>(_gate, this, 0, subscriptions[0]);
|
|
|
- _observer2 = new CombineLatestObserver<T2>(_gate, this, 1, subscriptions[1]);
|
|
|
- _observer3 = new CombineLatestObserver<T3>(_gate, this, 2, subscriptions[2]);
|
|
|
- _observer4 = new CombineLatestObserver<T4>(_gate, this, 3, subscriptions[3]);
|
|
|
- _observer5 = new CombineLatestObserver<T5>(_gate, this, 4, subscriptions[4]);
|
|
|
- _observer6 = new CombineLatestObserver<T6>(_gate, this, 5, subscriptions[5]);
|
|
|
- _observer7 = new CombineLatestObserver<T7>(_gate, this, 6, subscriptions[6]);
|
|
|
- _observer8 = new CombineLatestObserver<T8>(_gate, this, 7, subscriptions[7]);
|
|
|
- _observer9 = new CombineLatestObserver<T9>(_gate, this, 8, subscriptions[8]);
|
|
|
- _observer10 = new CombineLatestObserver<T10>(_gate, this, 9, subscriptions[9]);
|
|
|
- _observer11 = new CombineLatestObserver<T11>(_gate, this, 10, subscriptions[10]);
|
|
|
+ _observer1 = new CombineLatestObserver<T1>(_gate, this, 0, subscriptions[0]);
|
|
|
+ _observer2 = new CombineLatestObserver<T2>(_gate, this, 1, subscriptions[1]);
|
|
|
+ _observer3 = new CombineLatestObserver<T3>(_gate, this, 2, subscriptions[2]);
|
|
|
+ _observer4 = new CombineLatestObserver<T4>(_gate, this, 3, subscriptions[3]);
|
|
|
+ _observer5 = new CombineLatestObserver<T5>(_gate, this, 4, subscriptions[4]);
|
|
|
+ _observer6 = new CombineLatestObserver<T6>(_gate, this, 5, subscriptions[5]);
|
|
|
+ _observer7 = new CombineLatestObserver<T7>(_gate, this, 6, subscriptions[6]);
|
|
|
+ _observer8 = new CombineLatestObserver<T8>(_gate, this, 7, subscriptions[7]);
|
|
|
+ _observer9 = new CombineLatestObserver<T9>(_gate, this, 8, subscriptions[8]);
|
|
|
+ _observer10 = new CombineLatestObserver<T10>(_gate, this, 9, subscriptions[9]);
|
|
|
+ _observer11 = new CombineLatestObserver<T11>(_gate, this, 10, subscriptions[10]);
|
|
|
|
|
|
subscriptions[0].Disposable = _parent._source1.SubscribeSafe(_observer1);
|
|
|
subscriptions[1].Disposable = _parent._source2.SubscribeSafe(_observer2);
|
|
@@ -739,7 +737,7 @@ namespace System.Reactive.Linq.ObservableImpl
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- class CombineLatest<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, TResult> : Producer<TResult>
|
|
|
+ class CombineLatest<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, TResult> : Producer<TResult>
|
|
|
{
|
|
|
private readonly IObservable<T1> _source1;
|
|
|
private readonly IObservable<T2> _source2;
|
|
@@ -808,18 +806,18 @@ namespace System.Reactive.Linq.ObservableImpl
|
|
|
for (int i = 0; i < 12; i++)
|
|
|
subscriptions[i] = new SingleAssignmentDisposable();
|
|
|
|
|
|
- _observer1 = new CombineLatestObserver<T1>(_gate, this, 0, subscriptions[0]);
|
|
|
- _observer2 = new CombineLatestObserver<T2>(_gate, this, 1, subscriptions[1]);
|
|
|
- _observer3 = new CombineLatestObserver<T3>(_gate, this, 2, subscriptions[2]);
|
|
|
- _observer4 = new CombineLatestObserver<T4>(_gate, this, 3, subscriptions[3]);
|
|
|
- _observer5 = new CombineLatestObserver<T5>(_gate, this, 4, subscriptions[4]);
|
|
|
- _observer6 = new CombineLatestObserver<T6>(_gate, this, 5, subscriptions[5]);
|
|
|
- _observer7 = new CombineLatestObserver<T7>(_gate, this, 6, subscriptions[6]);
|
|
|
- _observer8 = new CombineLatestObserver<T8>(_gate, this, 7, subscriptions[7]);
|
|
|
- _observer9 = new CombineLatestObserver<T9>(_gate, this, 8, subscriptions[8]);
|
|
|
- _observer10 = new CombineLatestObserver<T10>(_gate, this, 9, subscriptions[9]);
|
|
|
- _observer11 = new CombineLatestObserver<T11>(_gate, this, 10, subscriptions[10]);
|
|
|
- _observer12 = new CombineLatestObserver<T12>(_gate, this, 11, subscriptions[11]);
|
|
|
+ _observer1 = new CombineLatestObserver<T1>(_gate, this, 0, subscriptions[0]);
|
|
|
+ _observer2 = new CombineLatestObserver<T2>(_gate, this, 1, subscriptions[1]);
|
|
|
+ _observer3 = new CombineLatestObserver<T3>(_gate, this, 2, subscriptions[2]);
|
|
|
+ _observer4 = new CombineLatestObserver<T4>(_gate, this, 3, subscriptions[3]);
|
|
|
+ _observer5 = new CombineLatestObserver<T5>(_gate, this, 4, subscriptions[4]);
|
|
|
+ _observer6 = new CombineLatestObserver<T6>(_gate, this, 5, subscriptions[5]);
|
|
|
+ _observer7 = new CombineLatestObserver<T7>(_gate, this, 6, subscriptions[6]);
|
|
|
+ _observer8 = new CombineLatestObserver<T8>(_gate, this, 7, subscriptions[7]);
|
|
|
+ _observer9 = new CombineLatestObserver<T9>(_gate, this, 8, subscriptions[8]);
|
|
|
+ _observer10 = new CombineLatestObserver<T10>(_gate, this, 9, subscriptions[9]);
|
|
|
+ _observer11 = new CombineLatestObserver<T11>(_gate, this, 10, subscriptions[10]);
|
|
|
+ _observer12 = new CombineLatestObserver<T12>(_gate, this, 11, subscriptions[11]);
|
|
|
|
|
|
subscriptions[0].Disposable = _parent._source1.SubscribeSafe(_observer1);
|
|
|
subscriptions[1].Disposable = _parent._source2.SubscribeSafe(_observer2);
|
|
@@ -844,7 +842,7 @@ namespace System.Reactive.Linq.ObservableImpl
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- class CombineLatest<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, TResult> : Producer<TResult>
|
|
|
+ class CombineLatest<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, TResult> : Producer<TResult>
|
|
|
{
|
|
|
private readonly IObservable<T1> _source1;
|
|
|
private readonly IObservable<T2> _source2;
|
|
@@ -916,19 +914,19 @@ namespace System.Reactive.Linq.ObservableImpl
|
|
|
for (int i = 0; i < 13; i++)
|
|
|
subscriptions[i] = new SingleAssignmentDisposable();
|
|
|
|
|
|
- _observer1 = new CombineLatestObserver<T1>(_gate, this, 0, subscriptions[0]);
|
|
|
- _observer2 = new CombineLatestObserver<T2>(_gate, this, 1, subscriptions[1]);
|
|
|
- _observer3 = new CombineLatestObserver<T3>(_gate, this, 2, subscriptions[2]);
|
|
|
- _observer4 = new CombineLatestObserver<T4>(_gate, this, 3, subscriptions[3]);
|
|
|
- _observer5 = new CombineLatestObserver<T5>(_gate, this, 4, subscriptions[4]);
|
|
|
- _observer6 = new CombineLatestObserver<T6>(_gate, this, 5, subscriptions[5]);
|
|
|
- _observer7 = new CombineLatestObserver<T7>(_gate, this, 6, subscriptions[6]);
|
|
|
- _observer8 = new CombineLatestObserver<T8>(_gate, this, 7, subscriptions[7]);
|
|
|
- _observer9 = new CombineLatestObserver<T9>(_gate, this, 8, subscriptions[8]);
|
|
|
- _observer10 = new CombineLatestObserver<T10>(_gate, this, 9, subscriptions[9]);
|
|
|
- _observer11 = new CombineLatestObserver<T11>(_gate, this, 10, subscriptions[10]);
|
|
|
- _observer12 = new CombineLatestObserver<T12>(_gate, this, 11, subscriptions[11]);
|
|
|
- _observer13 = new CombineLatestObserver<T13>(_gate, this, 12, subscriptions[12]);
|
|
|
+ _observer1 = new CombineLatestObserver<T1>(_gate, this, 0, subscriptions[0]);
|
|
|
+ _observer2 = new CombineLatestObserver<T2>(_gate, this, 1, subscriptions[1]);
|
|
|
+ _observer3 = new CombineLatestObserver<T3>(_gate, this, 2, subscriptions[2]);
|
|
|
+ _observer4 = new CombineLatestObserver<T4>(_gate, this, 3, subscriptions[3]);
|
|
|
+ _observer5 = new CombineLatestObserver<T5>(_gate, this, 4, subscriptions[4]);
|
|
|
+ _observer6 = new CombineLatestObserver<T6>(_gate, this, 5, subscriptions[5]);
|
|
|
+ _observer7 = new CombineLatestObserver<T7>(_gate, this, 6, subscriptions[6]);
|
|
|
+ _observer8 = new CombineLatestObserver<T8>(_gate, this, 7, subscriptions[7]);
|
|
|
+ _observer9 = new CombineLatestObserver<T9>(_gate, this, 8, subscriptions[8]);
|
|
|
+ _observer10 = new CombineLatestObserver<T10>(_gate, this, 9, subscriptions[9]);
|
|
|
+ _observer11 = new CombineLatestObserver<T11>(_gate, this, 10, subscriptions[10]);
|
|
|
+ _observer12 = new CombineLatestObserver<T12>(_gate, this, 11, subscriptions[11]);
|
|
|
+ _observer13 = new CombineLatestObserver<T13>(_gate, this, 12, subscriptions[12]);
|
|
|
|
|
|
subscriptions[0].Disposable = _parent._source1.SubscribeSafe(_observer1);
|
|
|
subscriptions[1].Disposable = _parent._source2.SubscribeSafe(_observer2);
|
|
@@ -954,7 +952,7 @@ namespace System.Reactive.Linq.ObservableImpl
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- class CombineLatest<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, TResult> : Producer<TResult>
|
|
|
+ class CombineLatest<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, TResult> : Producer<TResult>
|
|
|
{
|
|
|
private readonly IObservable<T1> _source1;
|
|
|
private readonly IObservable<T2> _source2;
|
|
@@ -1029,20 +1027,20 @@ namespace System.Reactive.Linq.ObservableImpl
|
|
|
for (int i = 0; i < 14; i++)
|
|
|
subscriptions[i] = new SingleAssignmentDisposable();
|
|
|
|
|
|
- _observer1 = new CombineLatestObserver<T1>(_gate, this, 0, subscriptions[0]);
|
|
|
- _observer2 = new CombineLatestObserver<T2>(_gate, this, 1, subscriptions[1]);
|
|
|
- _observer3 = new CombineLatestObserver<T3>(_gate, this, 2, subscriptions[2]);
|
|
|
- _observer4 = new CombineLatestObserver<T4>(_gate, this, 3, subscriptions[3]);
|
|
|
- _observer5 = new CombineLatestObserver<T5>(_gate, this, 4, subscriptions[4]);
|
|
|
- _observer6 = new CombineLatestObserver<T6>(_gate, this, 5, subscriptions[5]);
|
|
|
- _observer7 = new CombineLatestObserver<T7>(_gate, this, 6, subscriptions[6]);
|
|
|
- _observer8 = new CombineLatestObserver<T8>(_gate, this, 7, subscriptions[7]);
|
|
|
- _observer9 = new CombineLatestObserver<T9>(_gate, this, 8, subscriptions[8]);
|
|
|
- _observer10 = new CombineLatestObserver<T10>(_gate, this, 9, subscriptions[9]);
|
|
|
- _observer11 = new CombineLatestObserver<T11>(_gate, this, 10, subscriptions[10]);
|
|
|
- _observer12 = new CombineLatestObserver<T12>(_gate, this, 11, subscriptions[11]);
|
|
|
- _observer13 = new CombineLatestObserver<T13>(_gate, this, 12, subscriptions[12]);
|
|
|
- _observer14 = new CombineLatestObserver<T14>(_gate, this, 13, subscriptions[13]);
|
|
|
+ _observer1 = new CombineLatestObserver<T1>(_gate, this, 0, subscriptions[0]);
|
|
|
+ _observer2 = new CombineLatestObserver<T2>(_gate, this, 1, subscriptions[1]);
|
|
|
+ _observer3 = new CombineLatestObserver<T3>(_gate, this, 2, subscriptions[2]);
|
|
|
+ _observer4 = new CombineLatestObserver<T4>(_gate, this, 3, subscriptions[3]);
|
|
|
+ _observer5 = new CombineLatestObserver<T5>(_gate, this, 4, subscriptions[4]);
|
|
|
+ _observer6 = new CombineLatestObserver<T6>(_gate, this, 5, subscriptions[5]);
|
|
|
+ _observer7 = new CombineLatestObserver<T7>(_gate, this, 6, subscriptions[6]);
|
|
|
+ _observer8 = new CombineLatestObserver<T8>(_gate, this, 7, subscriptions[7]);
|
|
|
+ _observer9 = new CombineLatestObserver<T9>(_gate, this, 8, subscriptions[8]);
|
|
|
+ _observer10 = new CombineLatestObserver<T10>(_gate, this, 9, subscriptions[9]);
|
|
|
+ _observer11 = new CombineLatestObserver<T11>(_gate, this, 10, subscriptions[10]);
|
|
|
+ _observer12 = new CombineLatestObserver<T12>(_gate, this, 11, subscriptions[11]);
|
|
|
+ _observer13 = new CombineLatestObserver<T13>(_gate, this, 12, subscriptions[12]);
|
|
|
+ _observer14 = new CombineLatestObserver<T14>(_gate, this, 13, subscriptions[13]);
|
|
|
|
|
|
subscriptions[0].Disposable = _parent._source1.SubscribeSafe(_observer1);
|
|
|
subscriptions[1].Disposable = _parent._source2.SubscribeSafe(_observer2);
|
|
@@ -1069,7 +1067,7 @@ namespace System.Reactive.Linq.ObservableImpl
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- class CombineLatest<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, TResult> : Producer<TResult>
|
|
|
+ class CombineLatest<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, TResult> : Producer<TResult>
|
|
|
{
|
|
|
private readonly IObservable<T1> _source1;
|
|
|
private readonly IObservable<T2> _source2;
|
|
@@ -1147,21 +1145,21 @@ namespace System.Reactive.Linq.ObservableImpl
|
|
|
for (int i = 0; i < 15; i++)
|
|
|
subscriptions[i] = new SingleAssignmentDisposable();
|
|
|
|
|
|
- _observer1 = new CombineLatestObserver<T1>(_gate, this, 0, subscriptions[0]);
|
|
|
- _observer2 = new CombineLatestObserver<T2>(_gate, this, 1, subscriptions[1]);
|
|
|
- _observer3 = new CombineLatestObserver<T3>(_gate, this, 2, subscriptions[2]);
|
|
|
- _observer4 = new CombineLatestObserver<T4>(_gate, this, 3, subscriptions[3]);
|
|
|
- _observer5 = new CombineLatestObserver<T5>(_gate, this, 4, subscriptions[4]);
|
|
|
- _observer6 = new CombineLatestObserver<T6>(_gate, this, 5, subscriptions[5]);
|
|
|
- _observer7 = new CombineLatestObserver<T7>(_gate, this, 6, subscriptions[6]);
|
|
|
- _observer8 = new CombineLatestObserver<T8>(_gate, this, 7, subscriptions[7]);
|
|
|
- _observer9 = new CombineLatestObserver<T9>(_gate, this, 8, subscriptions[8]);
|
|
|
- _observer10 = new CombineLatestObserver<T10>(_gate, this, 9, subscriptions[9]);
|
|
|
- _observer11 = new CombineLatestObserver<T11>(_gate, this, 10, subscriptions[10]);
|
|
|
- _observer12 = new CombineLatestObserver<T12>(_gate, this, 11, subscriptions[11]);
|
|
|
- _observer13 = new CombineLatestObserver<T13>(_gate, this, 12, subscriptions[12]);
|
|
|
- _observer14 = new CombineLatestObserver<T14>(_gate, this, 13, subscriptions[13]);
|
|
|
- _observer15 = new CombineLatestObserver<T15>(_gate, this, 14, subscriptions[14]);
|
|
|
+ _observer1 = new CombineLatestObserver<T1>(_gate, this, 0, subscriptions[0]);
|
|
|
+ _observer2 = new CombineLatestObserver<T2>(_gate, this, 1, subscriptions[1]);
|
|
|
+ _observer3 = new CombineLatestObserver<T3>(_gate, this, 2, subscriptions[2]);
|
|
|
+ _observer4 = new CombineLatestObserver<T4>(_gate, this, 3, subscriptions[3]);
|
|
|
+ _observer5 = new CombineLatestObserver<T5>(_gate, this, 4, subscriptions[4]);
|
|
|
+ _observer6 = new CombineLatestObserver<T6>(_gate, this, 5, subscriptions[5]);
|
|
|
+ _observer7 = new CombineLatestObserver<T7>(_gate, this, 6, subscriptions[6]);
|
|
|
+ _observer8 = new CombineLatestObserver<T8>(_gate, this, 7, subscriptions[7]);
|
|
|
+ _observer9 = new CombineLatestObserver<T9>(_gate, this, 8, subscriptions[8]);
|
|
|
+ _observer10 = new CombineLatestObserver<T10>(_gate, this, 9, subscriptions[9]);
|
|
|
+ _observer11 = new CombineLatestObserver<T11>(_gate, this, 10, subscriptions[10]);
|
|
|
+ _observer12 = new CombineLatestObserver<T12>(_gate, this, 11, subscriptions[11]);
|
|
|
+ _observer13 = new CombineLatestObserver<T13>(_gate, this, 12, subscriptions[12]);
|
|
|
+ _observer14 = new CombineLatestObserver<T14>(_gate, this, 13, subscriptions[13]);
|
|
|
+ _observer15 = new CombineLatestObserver<T15>(_gate, this, 14, subscriptions[14]);
|
|
|
|
|
|
subscriptions[0].Disposable = _parent._source1.SubscribeSafe(_observer1);
|
|
|
subscriptions[1].Disposable = _parent._source2.SubscribeSafe(_observer2);
|
|
@@ -1189,7 +1187,7 @@ namespace System.Reactive.Linq.ObservableImpl
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- class CombineLatest<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, TResult> : Producer<TResult>
|
|
|
+ class CombineLatest<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, TResult> : Producer<TResult>
|
|
|
{
|
|
|
private readonly IObservable<T1> _source1;
|
|
|
private readonly IObservable<T2> _source2;
|
|
@@ -1270,22 +1268,22 @@ namespace System.Reactive.Linq.ObservableImpl
|
|
|
for (int i = 0; i < 16; i++)
|
|
|
subscriptions[i] = new SingleAssignmentDisposable();
|
|
|
|
|
|
- _observer1 = new CombineLatestObserver<T1>(_gate, this, 0, subscriptions[0]);
|
|
|
- _observer2 = new CombineLatestObserver<T2>(_gate, this, 1, subscriptions[1]);
|
|
|
- _observer3 = new CombineLatestObserver<T3>(_gate, this, 2, subscriptions[2]);
|
|
|
- _observer4 = new CombineLatestObserver<T4>(_gate, this, 3, subscriptions[3]);
|
|
|
- _observer5 = new CombineLatestObserver<T5>(_gate, this, 4, subscriptions[4]);
|
|
|
- _observer6 = new CombineLatestObserver<T6>(_gate, this, 5, subscriptions[5]);
|
|
|
- _observer7 = new CombineLatestObserver<T7>(_gate, this, 6, subscriptions[6]);
|
|
|
- _observer8 = new CombineLatestObserver<T8>(_gate, this, 7, subscriptions[7]);
|
|
|
- _observer9 = new CombineLatestObserver<T9>(_gate, this, 8, subscriptions[8]);
|
|
|
- _observer10 = new CombineLatestObserver<T10>(_gate, this, 9, subscriptions[9]);
|
|
|
- _observer11 = new CombineLatestObserver<T11>(_gate, this, 10, subscriptions[10]);
|
|
|
- _observer12 = new CombineLatestObserver<T12>(_gate, this, 11, subscriptions[11]);
|
|
|
- _observer13 = new CombineLatestObserver<T13>(_gate, this, 12, subscriptions[12]);
|
|
|
- _observer14 = new CombineLatestObserver<T14>(_gate, this, 13, subscriptions[13]);
|
|
|
- _observer15 = new CombineLatestObserver<T15>(_gate, this, 14, subscriptions[14]);
|
|
|
- _observer16 = new CombineLatestObserver<T16>(_gate, this, 15, subscriptions[15]);
|
|
|
+ _observer1 = new CombineLatestObserver<T1>(_gate, this, 0, subscriptions[0]);
|
|
|
+ _observer2 = new CombineLatestObserver<T2>(_gate, this, 1, subscriptions[1]);
|
|
|
+ _observer3 = new CombineLatestObserver<T3>(_gate, this, 2, subscriptions[2]);
|
|
|
+ _observer4 = new CombineLatestObserver<T4>(_gate, this, 3, subscriptions[3]);
|
|
|
+ _observer5 = new CombineLatestObserver<T5>(_gate, this, 4, subscriptions[4]);
|
|
|
+ _observer6 = new CombineLatestObserver<T6>(_gate, this, 5, subscriptions[5]);
|
|
|
+ _observer7 = new CombineLatestObserver<T7>(_gate, this, 6, subscriptions[6]);
|
|
|
+ _observer8 = new CombineLatestObserver<T8>(_gate, this, 7, subscriptions[7]);
|
|
|
+ _observer9 = new CombineLatestObserver<T9>(_gate, this, 8, subscriptions[8]);
|
|
|
+ _observer10 = new CombineLatestObserver<T10>(_gate, this, 9, subscriptions[9]);
|
|
|
+ _observer11 = new CombineLatestObserver<T11>(_gate, this, 10, subscriptions[10]);
|
|
|
+ _observer12 = new CombineLatestObserver<T12>(_gate, this, 11, subscriptions[11]);
|
|
|
+ _observer13 = new CombineLatestObserver<T13>(_gate, this, 12, subscriptions[12]);
|
|
|
+ _observer14 = new CombineLatestObserver<T14>(_gate, this, 13, subscriptions[13]);
|
|
|
+ _observer15 = new CombineLatestObserver<T15>(_gate, this, 14, subscriptions[14]);
|
|
|
+ _observer16 = new CombineLatestObserver<T16>(_gate, this, 15, subscriptions[15]);
|
|
|
|
|
|
subscriptions[0].Disposable = _parent._source1.SubscribeSafe(_observer1);
|
|
|
subscriptions[1].Disposable = _parent._source2.SubscribeSafe(_observer2);
|
|
@@ -1315,10 +1313,8 @@ namespace System.Reactive.Linq.ObservableImpl
|
|
|
}
|
|
|
|
|
|
|
|
|
-#endif
|
|
|
-
|
|
|
- #endregion
|
|
|
+ #endregion
|
|
|
|
|
|
- #endregion
|
|
|
+ #endregion
|
|
|
}
|
|
|
#endif
|