Table of Contents

Class InteractionContextExtensions

Namespace
Whipstaff.ReactiveUI.Interactions
Assembly
Whipstaff.ReactiveUI.dll

Helper methods for ReactiveUI.IInteractionContext<TInput, TOutput>.

public static class InteractionContextExtensions
Inheritance
InteractionContextExtensions
Inherited Members

Methods

ChainToOutputFuncAsync<TInput, TOutput>(IInteractionContext<TInput, TOutput>, Func<TInput, Task<TOutput>>)

Chains an interaction context to trigger a function and map the result to the interaction output.

public static Task ChainToOutputFuncAsync<TInput, TOutput>(this IInteractionContext<TInput, TOutput> interactionContext, Func<TInput, Task<TOutput>> outputFunc)

Parameters

interactionContext IInteractionContext<TInput, TOutput>

The interaction that takes an input and passes an output.

outputFunc Func<TInput, Task<TOutput>>

Function to apply to the output from the interaction.

Returns

Task

A Task representing the asynchronous operation.

Type Parameters

TInput

The type for the input passed into interaction.

TOutput

The output returned from the interaction.