Ejemplo n.º 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();
 }
Ejemplo n.º 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]);
     }
 }
Ejemplo n.º 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);
		}
Ejemplo n.º 4
0
			public FTPClientEnumerator(FTPClientCollection mappings) 
			{
				this.temp = ((IEnumerable)(mappings));
				this.baseEnumerator = temp.GetEnumerator();
			}
Ejemplo n.º 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]);
			}
		}
Ejemplo n.º 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();
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 8
0
 public FTPClientEnumerator(FTPClientCollection mappings)
 {
     this.temp           = ((IEnumerable)(mappings));
     this.baseEnumerator = temp.GetEnumerator();
 }