The recording of the first ever ReactiveUI virtual conference is available on our YouTube Channel.

Interaction<TInput, TOutput>.

RegisterHandler<TDontCare>(Func<InteractionContext<TInput, TOutput>, IObservable<TDontCare>>) Method

Summary

Registers an observable-based asynchronous interaction handler.
Namespace
ReactiveUI
Containing Type
Interaction<TInput, TOutput>

Syntax

public IDisposable RegisterHandler<TDontCare>(Func<InteractionContext<TInput, TOutput>, IObservable<TDontCare>> handler)

Remarks

This overload of RegisterHandler is useful if the handler needs to perform some asynchronous operation, such as displaying a dialog and waiting for the user's response.

Type Parameters

Name Description
TDontCare The signal type.

Parameters

Name Type Description
handler Func<InteractionContext<TInput, TOutput>, IObservable<TDontCare>> The handler.

Return Value

Type Description
IDisposable A disposable which, when disposed, will unregister the handler.