public static class ReactiveInteractionDescriptor Factory used by generated ReactiveUI bridges to expose one typed interaction to a mounted browser endpoint. It deliberately registers one ReactiveUI handler per Interaction object, regardless of how many views or windows present that object.
Methods
Create
public static BridgeInteractionDescriptor<TModel> Create<TModel, TInput, TOutput>(string name, string contract, Func<TModel, IInteraction<TInput, TOutput>> getInteraction, Func<TInput, string> encodeInput, Func<JsonElement, TOutput> decodeOutput, TimeSpan? timeout = null) where TModel : class Creates the descriptor for one ReactiveUI interaction of TModel.
Parameters
nameThe interaction's member name.
contractThe interaction contract that a browser handler must implement.
getInteractionReads the interaction from the model.
encodeInputEncodes interaction input for the browser.
decodeOutputDecodes the browser's answer.
timeoutHow long the browser may take to answer; at most ten minutes.