Beispiel #1
0
        async Task <string> CallMerchantApi(string serviceName, string actionName, string jsonParam)
        {
            //System.Diagnostics.Debugger.Break();
            var svcs = m_Node.GetLocalServices();

            if (svcs.InternalServices.ContainsKey(serviceName))
            {
                var    svc = svcs.InternalServices[serviceName];
                object ret = await svc.LocalCall(actionName, jsonParam);

                if (ret != null)
                {
                    return(ret.ToString());
                }
            }
            else
            {
                m_Logger.Error("Merchant API service not found: " + serviceName + "|" + actionName);
            }
            return(null);
        }