示例#1
0
		public void GetAddinDescription (IProgressStatus monitor, AddinRegistry registry, string file, string outFile)
		{
			RemoteProgressStatus remMonitor = new RemoteProgressStatus (monitor);
			try {
				RemoteSetupDomain rsd = GetDomain ();
				rsd.GetAddinDescription (remMonitor, registry.RegistryPath, registry.StartupDirectory, registry.DefaultAddinsFolder, registry.AddinCachePath, file, outFile);
			} catch (Exception ex) {
				throw new ProcessFailedException (remMonitor.ProgessLog, ex);
			} finally {
				System.Runtime.Remoting.RemotingServices.Disconnect (remMonitor);
				ReleaseDomain ();
			}
		}
示例#2
0
        public void GetAddinDescription(IProgressStatus monitor, AddinRegistry registry, string file, string outFile)
        {
            RemoteProgressStatus remMonitor = new RemoteProgressStatus(monitor);

            try {
                RemoteSetupDomain rsd = GetDomain();
                rsd.GetAddinDescription(remMonitor, registry.RegistryPath, registry.StartupDirectory, registry.DefaultAddinsFolder, registry.AddinCachePath, file, outFile);
            } catch (Exception ex) {
                throw new ProcessFailedException(remMonitor.ProgessLog, ex);
            } finally {
                System.Runtime.Remoting.RemotingServices.Disconnect(remMonitor);
                ReleaseDomain();
            }
        }
示例#3
0
        public void GenerateScanDataFiles(IProgressStatus monitor, AddinRegistry registry, string scanFolder, bool recursive)
        {
            RemoteProgressStatus remMonitor = new RemoteProgressStatus(monitor);

            try {
                RemoteSetupDomain rsd = GetDomain();
                rsd.PreScan(remMonitor, registry.RegistryPath, registry.StartupDirectory, registry.DefaultAddinsFolder, registry.AddinCachePath, scanFolder, recursive);
            } catch (Exception ex) {
                throw new ProcessFailedException(remMonitor.ProgessLog, ex);
            } finally {
                System.Runtime.Remoting.RemotingServices.Disconnect(remMonitor);
                ReleaseDomain();
            }
        }
示例#4
0
 public void Scan(IProgressStatus monitor, string registryPath, string startupDir, string scanFolder, string[] filesToIgnore)
 {
     RemoteProgressStatus remMonitor = new RemoteProgressStatus (monitor);
     try {
         RemoteSetupDomain rsd = GetDomain ();
         rsd.Scan (remMonitor, registryPath, startupDir, scanFolder, filesToIgnore);
     } catch (Exception ex) {
         throw new ProcessFailedException (remMonitor.ProgessLog, ex);
     } finally {
         System.Runtime.Remoting.RemotingServices.Disconnect (remMonitor);
         ReleaseDomain ();
     }
 }