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

Interaction<TInput, TOutput>.

RegisterHandler(Func<InteractionContext<TInput, TOutput>, Task>) Method

Summary

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

Syntax

public IDisposable RegisterHandler(Func<InteractionContext<TInput, TOutput>, Task> 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.

Parameters

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

Return Value

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