GFGGame_HttpTool_Binding.cs 4.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Reflection;
  5. using System.Runtime.InteropServices;
  6. using ILRuntime.CLR.TypeSystem;
  7. using ILRuntime.CLR.Method;
  8. using ILRuntime.Runtime.Enviorment;
  9. using ILRuntime.Runtime.Intepreter;
  10. using ILRuntime.Runtime.Stack;
  11. using ILRuntime.Reflection;
  12. using ILRuntime.CLR.Utils;
  13. namespace ILRuntime.Runtime.Generated
  14. {
  15. unsafe class GFGGame_HttpTool_Binding
  16. {
  17. public static void Register(ILRuntime.Runtime.Enviorment.AppDomain app)
  18. {
  19. BindingFlags flag = BindingFlags.Public | BindingFlags.Instance | BindingFlags.Static | BindingFlags.DeclaredOnly;
  20. MethodBase method;
  21. Type[] args;
  22. Type type = typeof(GFGGame.HttpTool);
  23. args = new Type[]{typeof(System.String), typeof(System.String), typeof(System.Action<System.String>)};
  24. method = type.GetMethod("Get", flag, null, args, null);
  25. app.RegisterCLRMethodRedirection(method, Get_0);
  26. args = new Type[]{typeof(System.String), typeof(System.String), typeof(System.String), typeof(System.Action<System.String>)};
  27. method = type.GetMethod("Post", flag, null, args, null);
  28. app.RegisterCLRMethodRedirection(method, Post_1);
  29. }
  30. static StackObject* Get_0(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
  31. {
  32. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  33. StackObject* ptr_of_this_method;
  34. StackObject* __ret = ILIntepreter.Minus(__esp, 4);
  35. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  36. System.Action<System.String> @callback = (System.Action<System.String>)typeof(System.Action<System.String>).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  37. __intp.Free(ptr_of_this_method);
  38. ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
  39. System.String @methodName = (System.String)typeof(System.String).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  40. __intp.Free(ptr_of_this_method);
  41. ptr_of_this_method = ILIntepreter.Minus(__esp, 3);
  42. System.String @prefixUrl = (System.String)typeof(System.String).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  43. __intp.Free(ptr_of_this_method);
  44. ptr_of_this_method = ILIntepreter.Minus(__esp, 4);
  45. GFGGame.HttpTool instance_of_this_method = (GFGGame.HttpTool)typeof(GFGGame.HttpTool).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  46. __intp.Free(ptr_of_this_method);
  47. instance_of_this_method.Get(@prefixUrl, @methodName, @callback);
  48. return __ret;
  49. }
  50. static StackObject* Post_1(ILIntepreter __intp, StackObject* __esp, IList<object> __mStack, CLRMethod __method, bool isNewObj)
  51. {
  52. ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
  53. StackObject* ptr_of_this_method;
  54. StackObject* __ret = ILIntepreter.Minus(__esp, 5);
  55. ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
  56. System.Action<System.String> @callback = (System.Action<System.String>)typeof(System.Action<System.String>).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  57. __intp.Free(ptr_of_this_method);
  58. ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
  59. System.String @jsonString = (System.String)typeof(System.String).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  60. __intp.Free(ptr_of_this_method);
  61. ptr_of_this_method = ILIntepreter.Minus(__esp, 3);
  62. System.String @methodName = (System.String)typeof(System.String).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  63. __intp.Free(ptr_of_this_method);
  64. ptr_of_this_method = ILIntepreter.Minus(__esp, 4);
  65. System.String @prefixUrl = (System.String)typeof(System.String).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  66. __intp.Free(ptr_of_this_method);
  67. ptr_of_this_method = ILIntepreter.Minus(__esp, 5);
  68. GFGGame.HttpTool instance_of_this_method = (GFGGame.HttpTool)typeof(GFGGame.HttpTool).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
  69. __intp.Free(ptr_of_this_method);
  70. instance_of_this_method.Post(@prefixUrl, @methodName, @jsonString, @callback);
  71. return __ret;
  72. }
  73. }
  74. }