/// <summary> /// /// </summary> /// <param name="soname">Smart Object Name</param> /// <param name="method">Method</param> /// <param name="properties">Input Properties</param> /// <returns></returns> public static SmartObjectReader SOExecuteListReader(string soname, string method, NameValueCollection properties) { SmartObjectClientServer soClient = null; SmartObjectReader SOList = null; try { // get connection to smartobject Server soClient = GetSOClientConnection(); // get smartobject SmartObject SO = soClient.GetSmartObject(soname); if (properties != null) { for (int i = 0; i < properties.Count; i++) { string key = properties.GetKey(i).ToString(); if (properties[key] != null && !string.IsNullOrEmpty(properties[key])) { string value = properties[key].ToString(); //SO.ListMethods[method].InputProperties[key].Value = value; SO.Properties[key].Value = value; } } } SO.MethodToExecute = method; SOList = soClient.ExecuteListReader(SO); } catch (Exception ex) { throw ex; } finally { // close connection //if (soClient != null) // soClient.Connection.Close(); } return(SOList); }
public virtual SmartObjectReader ExecuteListReader(SmartObject smartObject, ExecuteListReaderOptions options) { return(_serviceClientServer.ExecuteListReader(smartObject, options)); }