Skip to content

,System.Linq.Expressions.Expression)}

Qbservable.Finally(IQbservable, Expression) method

Defined in

Type: Qbservable Namespace: System.Reactive.Linq Assembly: System.Reactive.dll

Applies to

netstandard2.0

public static IQbservable<TSource> Finally<TSource>(this IQbservable<TSource> source, Expression<Action> finallyAction)

Summary: Invokes a specified action after the source observable sequence terminates gracefully or exceptionally.

Type parameters

NameDescription
TSourceThe type of the elements in the source sequence.

Parameters

NameTypeDescription
source[IQbservable](#Source sequence.
finallyActionExpressionAction to invoke after the source observable sequence terminates.

Returns: IQbservable -- Source sequence with the action-invoking termination behavior applied.

Exceptions

TypeCondition
System.ArgumentNullExceptionsource or finallyAction is null.