/// <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); }
/// <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); }