Example #1
0
 public override void Configure(ApplicationServer server, DirectoryInfo BaseDir, XmlDocument ConfigFile)
 {
     base.Configure(server, BaseDir, ConfigFile);
     _port          = int.Parse(ReadAppSetting(ConfigFile, "FTPApplication.Port", "21"));
     _BaseDirectory = ReadAppSetting(ConfigFile, "FTPApplication.Path", BaseDir.FullName);
     _Clients       = new FTPClientCollection();
 }
Example #2
0
 /// <summary>
 ///     <para>
 ///       Adds the contents of another <see cref='.FTPClientCollection'/> to the end of the collection.
 ///    </para>
 /// </summary>
 /// <param name='value'>
 ///    A <see cref='.FTPClientCollection'/> containing the objects to add to the collection.
 /// </param>
 /// <returns>
 ///   <para>None.</para>
 /// </returns>
 /// <seealso cref='.FTPClientCollection.Add'/>
 public void AddRange(FTPClientCollection value)
 {
     for (int i = 0; (i < value.Count); i = (i + 1))
     {
         this.Add(value[i]);
     }
 }
Example #3
0
		/// <summary>
		///     <para>
		///       Initializes a new instance of <see cref='.FTPClientCollection'/> based on another <see cref='.FTPClientCollection'/>.
		///    </para>
		/// </summary>
		/// <param name='value'>
		///       A <see cref='.FTPClientCollection'/> from which the contents are copied
		/// </param>
		public FTPClientCollection(FTPClientCollection value) 
		{
			this.AddRange(value);
		}
Example #4
0
			public FTPClientEnumerator(FTPClientCollection mappings) 
			{
				this.temp = ((IEnumerable)(mappings));
				this.baseEnumerator = temp.GetEnumerator();
			}
Example #5
0
		/// <summary>
		///     <para>
		///       Adds the contents of another <see cref='.FTPClientCollection'/> to the end of the collection.
		///    </para>
		/// </summary>
		/// <param name='value'>
		///    A <see cref='.FTPClientCollection'/> containing the objects to add to the collection.
		/// </param>
		/// <returns>
		///   <para>None.</para>
		/// </returns>
		/// <seealso cref='.FTPClientCollection.Add'/>
		public void AddRange(FTPClientCollection value) 
		{
			for (int i = 0; (i < value.Count); i = (i + 1)) 
			{
				this.Add(value[i]);
			}
		}
Example #6
0
 public override void Configure(ApplicationServer server, DirectoryInfo BaseDir, XmlDocument ConfigFile)
 {
   base.Configure(server,BaseDir,ConfigFile);
   _port=int.Parse(ReadAppSetting(ConfigFile,"FTPApplication.Port","21"));
   _BaseDirectory=ReadAppSetting(ConfigFile,"FTPApplication.Path",BaseDir.FullName);
   _Clients=new FTPClientCollection();
 }
Example #7
0
 /// <summary>
 ///     <para>
 ///       Initializes a new instance of <see cref='.FTPClientCollection'/> based on another <see cref='.FTPClientCollection'/>.
 ///    </para>
 /// </summary>
 /// <param name='value'>
 ///       A <see cref='.FTPClientCollection'/> from which the contents are copied
 /// </param>
 public FTPClientCollection(FTPClientCollection value)
 {
     this.AddRange(value);
 }
Example #8
0
 public FTPClientEnumerator(FTPClientCollection mappings)
 {
     this.temp           = ((IEnumerable)(mappings));
     this.baseEnumerator = temp.GetEnumerator();
 }