Optionally, symbolic names may be used for indexing the slave or master servers of a server list, and done so using the JSON object type.
Opcionalmente, se pueden usar los nombres simbólicos para indexar los servidores esclavos o maestros de una lista de servidores, realizándolo mediante el tipo objeto de JSON.
If you check the content of the new function you will see that it hard codes the JSON object being returned
Si comprobamos el contenido de la nueva función veremos que 'hardcodea' el objeto JSON que es devuelto
Some suggest that a class identifier should be passed, and an object instance of that class should be created and populated with the key/value pairs of the JSON object; others feel this could pose a substantial security risk.
Algunos sugieren que debe pasarse un identificador de clase, y una instancia del objeto de esa clase debe crearse y alimentarla con datos de pares clave/valor del objeto JSON; otros consideran que esto podría plantear un considerable riesgo de seguridad.
From lines 10-16, I'm only reading the body of the request and parsing the JSON object to a dynamic C# object.
De la línea 10 a la 16, lo único que hago es leer el cuerpo de la petición y procesar el objeto JSON a un objeto dinámico C#.
Conținut posibil inadecvat
Exemplele au rolul de a te ajuta să traduci cuvinte sau expresii corect si adaptat la context. Nu sunt selectate sau validate manual, așadar pot conține termeni inadecvați. Te rugăm să raportezi exemplele pe care le consideri inadecvate. Traducerile vulgare sau colocviale sunt în general marcate cu roșu sau cu portocaliu.
Înregistrează-te pentru a accesa mai multe exemple