Ejemplo n.º 1
0
        static int _m_SetStateMachine(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                DCET.Model.AsyncETVoidMethodBuilder gen_to_be_invoked; translator.Get(L, 1, out gen_to_be_invoked);



                {
                    System.Runtime.CompilerServices.IAsyncStateMachine _stateMachine = (System.Runtime.CompilerServices.IAsyncStateMachine)translator.GetObject(L, 2, typeof(System.Runtime.CompilerServices.IAsyncStateMachine));

                    gen_to_be_invoked.SetStateMachine(_stateMachine);


                    translator.Update(L, 1, gen_to_be_invoked);


                    return(0);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
 public void SetStateMachine(System.Runtime.CompilerServices.IAsyncStateMachine arg0)
 {
     if (!m_bSetStateMachineGot)
     {
         m_SetStateMachine     = instance.Type.GetMethod("SetStateMachine", 1);
         m_bSetStateMachineGot = true;
     }
     if (m_SetStateMachine != null)
     {
         appdomain.Invoke(m_SetStateMachine, instance, arg0);
     }
     else
     {
     }
 }
Ejemplo n.º 3
0
        static StackObject *SetStateMachine_8(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.Runtime.CompilerServices.IAsyncStateMachine @stateMachine = (System.Runtime.CompilerServices.IAsyncStateMachine) typeof(System.Runtime.CompilerServices.IAsyncStateMachine).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            Fuse.Tasks.CTask <System.Object> instance_of_this_method = (Fuse.Tasks.CTask <System.Object>) typeof(Fuse.Tasks.CTask <System.Object>).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.SetStateMachine(@stateMachine);

            return(__ret);
        }
        static StackObject *SetStateMachine_6(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.Runtime.CompilerServices.IAsyncStateMachine stateMachine = (System.Runtime.CompilerServices.IAsyncStateMachine) typeof(System.Runtime.CompilerServices.IAsyncStateMachine).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);
            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            ptr_of_this_method = ILIntepreter.GetObjectAndResolveReference(ptr_of_this_method);
            System.Runtime.CompilerServices.AsyncTaskMethodBuilder <ILRuntime.Runtime.Intepreter.ILTypeInstance> instance_of_this_method;
            instance_of_this_method = (System.Runtime.CompilerServices.AsyncTaskMethodBuilder <ILRuntime.Runtime.Intepreter.ILTypeInstance>) typeof(System.Runtime.CompilerServices.AsyncTaskMethodBuilder <ILRuntime.Runtime.Intepreter.ILTypeInstance>).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));

            instance_of_this_method.SetStateMachine(stateMachine);

            WriteBackInstance(__domain, ptr_of_this_method, __mStack, ref instance_of_this_method);

            return(__ret);
        }
        static StackObject *SetStateMachine_6(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.Runtime.CompilerServices.IAsyncStateMachine @stateMachine = (System.Runtime.CompilerServices.IAsyncStateMachine) typeof(System.Runtime.CompilerServices.IAsyncStateMachine).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags) 0);
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            ptr_of_this_method = ILIntepreter.GetObjectAndResolveReference(ptr_of_this_method);
            ET.ETAsyncTaskMethodBuilder <System.Collections.Generic.List <ET.WhiteConfig> > instance_of_this_method = (ET.ETAsyncTaskMethodBuilder <System.Collections.Generic.List <ET.WhiteConfig> >) typeof(ET.ETAsyncTaskMethodBuilder <System.Collections.Generic.List <ET.WhiteConfig> >).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags) 16);

            instance_of_this_method.SetStateMachine(@stateMachine);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            WriteBackInstance(__domain, ptr_of_this_method, __mStack, ref instance_of_this_method);

            __intp.Free(ptr_of_this_method);
            return(__ret);
        }
Ejemplo n.º 6
0
 public void SetStateMachine(System.Runtime.CompilerServices.IAsyncStateMachine stateMachine)
 {
 }
Ejemplo n.º 7
0
 public void SetStateMachine(System.Runtime.CompilerServices.IAsyncStateMachine stateMachine)
 {
     Console.WriteLine("SetStateMachine called");
 }
Ejemplo n.º 8
0
 public void SetStateMachine(System.Runtime.CompilerServices.IAsyncStateMachine stateMachine)
 {
     mSetStateMachine_1.Invoke(this.instance, stateMachine);
 }