Exemple #1
0
 public override void Configure(ApplicationServer server, DirectoryInfo BaseDir, XmlDocument ConfigFile)
 {
     EnterMethod();
     try
     {
         base.Configure(server, BaseDir, ConfigFile);
         _ApplicationBaseDir = server.ApplicationsBaseDir;
         SendValue("Application BaseDir", _ApplicationBaseDir);
         _Port = int.Parse(ReadAppSetting(ConfigFile, "AdminApplication.Port", "8080"));
         SendValue("Port", _Port);
         FTPPort = int.Parse(ReadAppSetting(ConfigFile, "AdminApplication.FTPPort", "8021"));
         SendValue("FTP Port", FTPPort);
         _FTPEnabled = bool.Parse(ReadAppSetting(ConfigFile, "AdminApplication.FTPEnabled", "false"));
         SendValue("FTP Enabled", _FTPEnabled);
         if (_FTPEnabled)
         {
             _FTPApplication = new FTPApplication(FTPPort, this.Name + ".FTP", AppServer.ApplicationsBaseDir, this.AppServer);
         }
     }
     catch (Exception E)
     {
         SendError(E);
         throw;
     }
     finally
     {
         ExitMethod();
     }
 }
Exemple #2
0
 protected void StartFTP(int FTPPort)
 {
     EnterMethod();
     try
     {
         this.FTPPort    = FTPPort;
         _FTPApplication = new FTPApplication(FTPPort, this.Name + ".FTP", _ApplicationBaseDir, this.AppServer);
         _FTPApplication.Load();
     }
     catch (Exception E)
     {
         SendError(E);
         throw;
     }
     finally
     {
         ExitMethod();
     }
 }
Exemple #3
0
 protected void StartFTP(int FTPPort)
 {
   EnterMethod();
   try
   {
     this.FTPPort=FTPPort;
     _FTPApplication=new FTPApplication(FTPPort, this.Name+".FTP", _ApplicationBaseDir, this.AppServer);
     _FTPApplication.Load();
   }
   catch(Exception E)
   {
     SendError(E);
     throw;
   }
   finally
   {
     ExitMethod();
   }
 }
Exemple #4
0
 protected void StopFTP()
 {
     EnterMethod();
     try
     {
         if (FTPApplication != null)
         {
             FTPApplication.Unload();
             _FTPApplication = null;
         }
     }
     catch (Exception E)
     {
         SendError(E);
         throw;
     }
     finally
     {
         ExitMethod();
     }
 }
Exemple #5
0
 protected void StopFTP()
 {
   EnterMethod();
   try
   {
     if (FTPApplication!=null)
     {
       FTPApplication.Unload();
       _FTPApplication=null;
     }
   }
   catch(Exception E)
   {
     SendError(E);
     throw;
   }
   finally
   {
     ExitMethod();
   }
 }
Exemple #6
0
 public override void Configure(ApplicationServer server, DirectoryInfo BaseDir, XmlDocument ConfigFile)
 {
   EnterMethod();
   try
   {
     base.Configure(server,BaseDir,ConfigFile);
     _ApplicationBaseDir=server.ApplicationsBaseDir;
     SendValue("Application BaseDir", _ApplicationBaseDir);
     _Port=int.Parse(ReadAppSetting(ConfigFile,"AdminApplication.Port","8080"));        
     SendValue("Port", _Port);
     FTPPort=int.Parse(ReadAppSetting(ConfigFile,"AdminApplication.FTPPort","8021"));
     SendValue("FTP Port", FTPPort);
     _FTPEnabled=bool.Parse(ReadAppSetting(ConfigFile,"AdminApplication.FTPEnabled","false"));
     SendValue("FTP Enabled", _FTPEnabled);
     if (_FTPEnabled)
     {
       _FTPApplication=new FTPApplication(FTPPort, this.Name+".FTP", AppServer.ApplicationsBaseDir, this.AppServer);
     }
   }
   catch(Exception E)
   {
     SendError(E);
     throw;
   }
   finally
   {
     ExitMethod();
   }
 }