Ejemplo n.º 1
0
        static StackObject *Get_2(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *ptr_of_this_method;
            StackObject *__ret = ILIntepreter.Minus(__esp, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            System.String @path = (System.String) typeof(System.String).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            EB.Sparx.EndPoint instance_of_this_method = (EB.Sparx.EndPoint) typeof(EB.Sparx.EndPoint).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            var result_of_this_method = instance_of_this_method.Get(@path);

            return(ILIntepreter.PushObject(__ret, __mStack, result_of_this_method));
        }
Ejemplo n.º 2
0
    public void RequestRemoteData(string subsystemName, System.Action <string, object> callback)
    {
        EB.Sparx.Request request = m_Api.Get("/" + subsystemName + "/async");

        m_Api.Service(request, delegate(EB.Sparx.Response response) {
            if (response.sucessful == true)
            {
                if (callback != null)
                {
                    callback(null, response.result);
                }
            }
            else
            {
                if (callback != null)
                {
                    callback(response.localizedError, null);
                }
            }
        });
    }