\r\n

51Degrees Pipeline .NET  4.4

51Degrees Pipeline for .NET

FiftyOne.Pipeline.JsonBuilder.Constants Class Reference

Detailed Description

Static class containing various constants that are used by the Pipeline and/or are helpful to callers.

Public Attributes

const int  MAX_JAVASCRIPT_ITERATIONS = 10
The maximum number of times that the JavaScript produced by the JavaScriptBuilderElement will be allowed to call back to the server to get new JSON data. More...

Member Data Documentation

◆ MAX_JAVASCRIPT_ITERATIONS

const int FiftyOne.Pipeline.JsonBuilder.Constants.MAX_JAVASCRIPT_ITERATIONS = 10

The maximum number of times that the JavaScript produced by the JavaScriptBuilderElement will be allowed to call back to the server to get new JSON data.

When the JavaScript runs on the client device, it can optionally include a callback to an endpoint on the server that gets new JSON data. If that JSON data contains further JavaScript properties then they are executed again on the client and the process repeats. To prevent accidental infinite loops of requests, we limit the maximum number of iterations. After this number of iterations is reached, the JsonBuilderElement will simply not build the list of JavaScript properties and so none will get executed on the client device.