Exemple #1
0
        public PushRuntime(IScriptRuntime runtime)
        {
            EnsureRuntimeHandler();

            ms_runtimeHandler.PushRuntime(runtime);

            m_runtime = runtime;
        }
Exemple #2
0
        public PushRuntime(IScriptRuntime runtime, IntPtr comRuntime = default)
        {
#if !IS_FXSERVER || OS_WIN
            ms_pushMethod.method(ms_runtimeHandlerIface, comRuntime);

            m_runtime = comRuntime;
#else
            ms_runtimeHandler.PushRuntime(runtime);

            m_runtime       = IntPtr.Zero;
            m_actualRuntime = runtime;
#endif
        }
Exemple #3
0
        public PushRuntime(IScriptRuntime runtime)
        {
            EnsureRuntimeHandler();

#if !IS_FXSERVER
            var comRuntime = Marshal.GetComInterfaceForObject(runtime, typeof(IScriptRuntime));
            ms_pushMethod.method(ms_runtimeHandlerIface, comRuntime);

            m_runtime = comRuntime;
#else
            ms_runtimeHandler.PushRuntime(runtime);

            m_actualRuntime = runtime;
#endif
        }