Ejemplo n.º 1
0
            public static bool Uninitialize(bool forceShutdown = false)
            {
                DynamicEventReceiver.Uninitialize();
                Message.Uninitialize();

                UninitializeFactories();
                return(Platform_uninitialize(forceShutdown));
            }
Ejemplo n.º 2
0
            static private void OnEvent_callback(IntPtr instance, IntPtr sender, UInt64 event_id, IntPtr a0, IntPtr a1, IntPtr a2, IntPtr a3, IntPtr a4, IntPtr a5, IntPtr a6, IntPtr a7, IntPtr a8, IntPtr a9)
            {
                DynamicEventReceiver recv = ReferenceDictionary <DynamicEventReceiver> .GetObject(instance);

                if (recv != null)
                {
                    recv.OnEvent?.Invoke(recv, Reference.CreateObject(sender) as DynamicEventInterface, event_id, new DynamicType(a0), new DynamicType(a1), new DynamicType(a2), new DynamicType(a3), new DynamicType(a4), new DynamicType(a5), new DynamicType(a6), new DynamicType(a7), new DynamicType(a8), new DynamicType(a9));
                }
            }
Ejemplo n.º 3
0
            public static bool Initialize()
            {
                bool result = Platform_initialize();

                if (result)
                {
                    InitializeFactories();
                    Message.Initialize();
                    DynamicEventReceiver.Initialize();
                }

                return(result);
            }