Working with RSCA using configuration APIs
//
//
//
var stateProperty = siteElement.GetPropertyByName("state");
//
//
//
Site Start and Stop method definitions don’t specify inputElement and outputElement as these methods don’t accept any input parameters and don’t return anything. For an example of a method which accepts input and gives output, see schema of GetRequests and GetCustomData methods. Sample below shows how to call GetRequests method to prints all requests in progress with timeElapsed > 5000msec.
try
//
//
//
//
//
var getRequestsMethod = workerProcess.Methods.Item("GetRequests");
//
getRequestsMethodInstance.Execute();
var output = getRequestsMethodInstance.Output;
for (var j = 0; j < requestPropertiesCollection.Count; j++)
Hope this helps.
Kanwal