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

Interaction<TInput, TOutput>.

RegisterHandler(Action<InteractionContext<TInput, TOutput>>) Method

Summary

Registers a synchronous interaction handler.
Namespace
ReactiveUI
Containing Type
Interaction<TInput, TOutput>

Syntax

public IDisposable RegisterHandler(Action<InteractionContext<TInput, TOutput>> handler)

Remarks

This overload of RegisterHandler is only useful if the handler can handle the interaction immediately. That is, it does not need to wait for the user or some other collaborating component.

Parameters

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

Return Value

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