Пример #1
0
        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
        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
        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
        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
        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
        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);
                }
            }
        }