Class TestController
The Test Controller can be used to test server responsiveness and speed.
Namespace: Ayuda.BMS.Splash.Areas.Pi.Controllers
Remarks
This web service can be accessed using an address similar to the following: https://[AYUDA DEPLOYMENT URL]/Juice/Pi/Test
Methods
DoNothing()
Executes no action.
Can be used to:
- Test the bare minimum time needed for a call to the API.
- Test the incoming speed (of parameters).
Declaration
public JsonResult DoNothing()
Returns
Type | Description |
---|---|
System.Web.Mvc.JsonResult | A Json encoded boolean. The value is always true. |
Random(Int64)
Returns an amount of random data.
Can be used to:
- Can be used to test the outgoing speed.
Declaration
public FileStreamResult Random(long length)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | length | The length, in bytes, of the data to return. |
Returns
Type | Description |
---|---|
System.Web.Mvc.FileStreamResult | A stream of random bytes, up to the number specified. |
Repeat()
Returns the values of all parameters passed to it.
Declaration
public JsonResult Repeat()
Returns
Type | Description |
---|---|
System.Web.Mvc.JsonResult | A Json encoded object. It's properties and their values correspond to the parameters sent. |