static WorkerBackgroundServiceProxy()
        {
            var wim = typeof(WorkerInstanceManager);

            InitEndPoint =
                MonoTypeHelper.GetStaticMethodId <WorkerInstanceManager>(nameof(WorkerInstanceManager.Init));
            EndInvokeCallBackEndpoint =
                MonoTypeHelper.GetStaticMethodId <JSInvokeService>(nameof(JSInvokeService.EndInvokeCallBack));
        }
Esempio n. 2
0
        static CoreInstanceService()
        {
            initEndpointID =
                MonoTypeHelper.GetStaticMethodId <WorkerSimpleInstanceService>(nameof(WorkerSimpleInstanceService.Init));
            endInvokeCallBackEndpointID =
                MonoTypeHelper.GetStaticMethodId <JSInvokeService>(nameof(JSInvokeService.EndInvokeCallBack));
#if DEBUG
            Console.WriteLine($"{nameof(CoreInstanceService)}(): {initEndpointID}, {endInvokeCallBackEndpointID}");
#endif
        }