Skip to content

Commit 1be5841

Browse files
author
Burgy Benjamin
committed
Fix some extensions.
1 parent 737687d commit 1be5841

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Rx.Contrib/ObservableExtensions.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ public static IAwaitableSubscription AwaitableSubscription<TSource>(this IObserv
214214
Action<TSource> onNext,
215215
CancellationToken token)
216216
{
217-
return new AwaitableSubscription<TSource>(source, token);
217+
return new AwaitableSubscription<TSource>(source, onNext, token);
218218
}
219219

220220
/// <summary>
@@ -243,7 +243,7 @@ public static IAwaitableSubscription AwaitableSubscription<TSource>(this IObserv
243243
Action<Exception> onError,
244244
CancellationToken token)
245245
{
246-
return new AwaitableSubscription<TSource>(source, token);
246+
return new AwaitableSubscription<TSource>(source, onNext, onError, token);
247247
}
248248

249249
/// <summary>
@@ -272,7 +272,7 @@ public static IAwaitableSubscription AwaitableSubscription<TSource>(this IObserv
272272
Action onCompleted,
273273
CancellationToken token)
274274
{
275-
return new AwaitableSubscription<TSource>(source, token);
275+
return new AwaitableSubscription<TSource>(source, onNext, onCompleted, token);
276276
}
277277

278278
/// <summary>
@@ -305,7 +305,7 @@ public static IAwaitableSubscription AwaitableSubscription<TSource>(this IObserv
305305
Action onCompleted,
306306
CancellationToken token)
307307
{
308-
return new AwaitableSubscription<TSource>(source, token);
308+
return new AwaitableSubscription<TSource>(source, onNext, onError, onCompleted, token);
309309
}
310310

311311
#endregion

0 commit comments

Comments
 (0)