Skip to content

Commit

Permalink
Fix some extensions.
Browse files Browse the repository at this point in the history
  • Loading branch information
minidfx committed Jun 17, 2015
1 parent 737687d commit 1be5841
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Rx.Contrib/ObservableExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ public static IAwaitableSubscription AwaitableSubscription<TSource>(this IObserv
Action<TSource> onNext,
CancellationToken token)
{
return new AwaitableSubscription<TSource>(source, token);
return new AwaitableSubscription<TSource>(source, onNext, token);
}

/// <summary>
Expand Down Expand Up @@ -243,7 +243,7 @@ public static IAwaitableSubscription AwaitableSubscription<TSource>(this IObserv
Action<Exception> onError,
CancellationToken token)
{
return new AwaitableSubscription<TSource>(source, token);
return new AwaitableSubscription<TSource>(source, onNext, onError, token);
}

/// <summary>
Expand Down Expand Up @@ -272,7 +272,7 @@ public static IAwaitableSubscription AwaitableSubscription<TSource>(this IObserv
Action onCompleted,
CancellationToken token)
{
return new AwaitableSubscription<TSource>(source, token);
return new AwaitableSubscription<TSource>(source, onNext, onCompleted, token);
}

/// <summary>
Expand Down Expand Up @@ -305,7 +305,7 @@ public static IAwaitableSubscription AwaitableSubscription<TSource>(this IObserv
Action onCompleted,
CancellationToken token)
{
return new AwaitableSubscription<TSource>(source, token);
return new AwaitableSubscription<TSource>(source, onNext, onError, onCompleted, token);
}

#endregion
Expand Down

0 comments on commit 1be5841

Please sign in to comment.