예제 #1
0
        /// <summary>
        /// UnregisterShell
        /// </summary>
        /// <param name="shell"></param>
        /// <returns></returns>
        public bool UnregisterShell(IShell shell)
        {
            XShellShadow shellShadow = new XShellShadow(shell.ShellName);
            bool         result      = (bool)RemoteMethodInvoker.RemoteInvoke(APP_MANAGER_NAME, shellShadow);

            if (result)
            {
                RemoveShell(shell);
            }

            return(result);
        }
예제 #2
0
        /// <summary>
        /// RegisterShell
        /// </summary>
        /// <param name="shell"></param>
        /// <returns></returns>
        public bool RegisterShell(IShell shell)
        {
            XShellShadow shellShadow = new XShellShadow(shell.ShellName);

            RemoteMethodInvoker.RegisterServiceObject <IShell>(shell, shell.ShellName);
            bool result = (bool)RemoteMethodInvoker.RemoteInvoke(APP_MANAGER_NAME, shellShadow);

            if (result)
            {
                AddShell(shell);
            }

            return(result);
        }