Exemplo n.º 1
0
        private static void InitializeRemoting(string id, IOutOfProcessEntryPoint entryPoint)
        {
            Remoting.Remoting.RegisterChannels(true, id);

            s_SafeChildProcessHandle = new SafeChildProcessHandle(Dispatcher.CurrentDispatcher, entryPoint);
            Remoting.Remoting.RegisterService <SafeChildProcessHandle, ISafeChildProcessHandle>(s_SafeChildProcessHandle);
        }
Exemplo n.º 2
0
        private static void InitializeRemoting(string id, IOutOfProcessEntryPoint entryPoint)
        {
            Remoting.Remoting.RegisterChannels(true, id);

            s_SafeChildProcessHandle = new SafeChildProcessHandle(Dispatcher.CurrentDispatcher, entryPoint);
            Remoting.Remoting.RegisterService<SafeChildProcessHandle, ISafeChildProcessHandle>(s_SafeChildProcessHandle);
        }
        public SafeChildProcessHandle(Dispatcher uiThreadDispatcher, IOutOfProcessEntryPoint entryPoint)
        {
            if (uiThreadDispatcher == null) 
                throw new ArgumentNullException("uiThreadDispatcher");
            
            if (entryPoint == null) 
                throw new ArgumentNullException("entryPoint");

            m_UiThreadDispatcher = uiThreadDispatcher;
            m_EntryPoint = entryPoint;
        }
        public SafeChildProcessHandle(Dispatcher uiThreadDispatcher, IOutOfProcessEntryPoint entryPoint)
        {
            if (uiThreadDispatcher == null)
            {
                throw new ArgumentNullException("uiThreadDispatcher");
            }

            if (entryPoint == null)
            {
                throw new ArgumentNullException("entryPoint");
            }

            m_UiThreadDispatcher = uiThreadDispatcher;
            m_EntryPoint         = entryPoint;
        }