Click or drag to resize
IWebSiteExtenderPageHandlers Property
Gets a map of page handler methods keyed by the address that they will handle.

Namespace: VirtualRadar.Interface.WebSite
Assembly: VirtualRadar.Interface (in VirtualRadar.Interface.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
IDictionary<string, Action<RequestReceivedEventArgs>> PageHandlers { get; }

Property Value

Type: IDictionaryString, ActionRequestReceivedEventArgs
Remarks

If your plugin needs to handle requests in code - for example it needs to create JSON responses on the fly - then you can register your handlers for those requests here. The key to the dictionary is the address from the VRS root of the address that you want your code called for (e.g. '/MyPlugin/GiveMeData.json') and the value is a delegate, anonymous delegate or function that takes a single parameter, a RequestReceivedEventArgs, that passes information about the request and can be used to send a response to the browser.

Addresses are not case sensitive.

See Also