Exemplo n.º 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);
        }
Exemplo n.º 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);
        }