ViewRequestDescriptor class

Namespace Runic.Application.Views.Generated in Runic.Application.Views 0.23.0

public static class ViewRequestDescriptor

Factory used by generated Bridges to attach a ViewRequest member to its route.

Methods

Create

public static BridgeInteractionDescriptor Create<T>(string name, string contract, Func<object, ViewRequest<T>> getRequest, Func<T, string> encodeInput)

Creates the descriptor of one view request of a ViewModel.

Parameters

name

The request's member name on the page.

contract

The request's contract, which a page handler registers.

getRequest

Reads the request from the model.

encodeInput

Encodes the request's input for the page.