23 lines
838 B
C#
23 lines
838 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using ArcGIS.Desktop.Framework.Dialogs;
|
|
|
|
namespace LinkToolAddin.server;
|
|
|
|
public class CallArcGISPro
|
|
{
|
|
private static readonly log4net.ILog log = log4net.LogManager.GetLogger(typeof(CallArcGISPro));
|
|
public static JsonRpcResultEntity CallArcGISProTool(string methodName, List<string> methodParams)
|
|
{
|
|
// Simulate a call to ArcGIS Pro and return a success response
|
|
var successResponse = new JsonRpcSuccessEntity
|
|
{
|
|
Jsonrpc = "2.0",
|
|
Id = 1,
|
|
Result = $"ArcGIS Pro {methodName} method called successfully"
|
|
};
|
|
log.Info($"ArcGIS Pro {methodName} method called successfully");
|
|
MessageBox.Show($"ArcGIS Pro {methodName} method called successfully", "Test JsonRpc");
|
|
return successResponse;
|
|
}
|
|
} |