public static class ViewQuestionDescriptor Factory used by generated Bridges to attach a ViewQuestion member to its route.
Methods
Create
public static BridgeInteractionDescriptor Create<TInput, TOutput>(string name, string contract, Func<object, ViewQuestion<TInput, TOutput>> getQuestion, Func<TInput, string> encodeInput, Func<JsonElement, TOutput> decodeOutput) Creates the descriptor of one view question of a ViewModel.
Parameters
nameThe question's member name on the page.
contractThe interaction contract that a page handler must implement.
getQuestionReads the question from the model.
encodeInputEncodes the question for the page.
decodeOutputDecodes the page's answer.