示例#1
0
文件: Sps30.cs 项目: pasamsin/SolidCP
        public override string BackupVirtualServer(string url, string fileName, bool zipBackup)
        {
            AppDomain domain = null;

            try
            {
                domain = CreateAppDomain();
                Sps30Remote wss = CreateSps30Remote(domain);

                // call method
                return(wss.BackupVirtualServer(url, fileName, zipBackup));
            }
            finally
            {
                if (domain != null)
                {
                    AppDomain.Unload(domain);
                }
            }
        }
示例#2
0
文件: Sps30.cs 项目: pasamsin/SolidCP
        public override void UnextendVirtualServer(string url, bool deleteContent)
        {
            AppDomain domain = null;

            try
            {
                domain = CreateAppDomain();
                Sps30Remote wss = CreateSps30Remote(domain);

                // call method
                wss.UnextendVirtualServer(url, deleteContent);
            }
            finally
            {
                if (domain != null)
                {
                    AppDomain.Unload(domain);
                }
            }
        }
示例#3
0
文件: Sps30.cs 项目: pasamsin/SolidCP
        public override void ExtendVirtualServer(SharePointSite site)
        {
            AppDomain domain = null;

            try
            {
                domain = CreateAppDomain();
                Sps30Remote wss = CreateSps30Remote(domain);

                // call method
                wss.ExtendVirtualServer(site, ExclusiveNTLM);
            }
            finally
            {
                if (domain != null)
                {
                    AppDomain.Unload(domain);
                }
            }
        }
示例#4
0
文件: Sps30.cs 项目: pasamsin/SolidCP
        public override void DeleteWebPartsPackage(string url, string packageName)
        {
            AppDomain domain = null;

            try
            {
                domain = CreateAppDomain();
                Sps30Remote wss = CreateSps30Remote(domain);

                // call method
                wss.DeleteWebPartsPackage(url, packageName);
            }
            finally
            {
                if (domain != null)
                {
                    AppDomain.Unload(domain);
                }
            }
        }
示例#5
0
文件: Sps30.cs 项目: pasamsin/SolidCP
        public override string[] GetInstalledWebParts(string url)
        {
            AppDomain domain = null;

            try
            {
                domain = CreateAppDomain();
                Sps30Remote wss = CreateSps30Remote(domain);

                // call method
                return(wss.GetInstalledWebParts(url));
            }
            finally
            {
                if (domain != null)
                {
                    AppDomain.Unload(domain);
                }
            }
        }
示例#6
0
文件: Sps30.cs 项目: pasamsin/SolidCP
        public override void RestoreVirtualServer(string url, string fileName)
        {
            AppDomain domain = null;

            try
            {
                domain = CreateAppDomain();
                Sps30Remote wss = CreateSps30Remote(domain);

                // call method
                wss.RestoreVirtualServer(url, fileName);
            }
            finally
            {
                if (domain != null)
                {
                    AppDomain.Unload(domain);
                }
            }
        }