using System.Collections.Generic; using System.Threading.Tasks; using LinkToolAddin.server; using Newtonsoft.Json; namespace LinkToolAddin.client; public class CallArcGISPro { public async static Task CallArcGISProTool(Dictionary parameters) { // Call the ArcGIS Pro method and get the result var result = await server.CallArcGISPro.CallArcGISProTool(parameters["toolName"], JsonConvert.DeserializeObject>(parameters["toolParams"])); // Serialize the result back to a JSON string return JsonConvert.SerializeObject(result); } }