Exemple #1
0
        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="filePath">文件路径</param>
        /// <param name="fileName">文件名</param>
        public FileTransmission(string filePath, string fileName)
        {
            FinishedBlock = new List <int>();
            WaitHandle    = new EventWaitHandle(true, EventResetMode.ManualReset);
            _blocks       = new FileBlockCollection(this);

            FilePath = filePath;
            FileName = fileName;
        }
        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="filePath">文件路径</param>
        /// <param name="fileName">文件名</param>
        public FileTransmission(string filePath, string fileName)
        {
            FinishedBlock = new List<int>();
            WaitHandle = new EventWaitHandle(true, EventResetMode.ManualReset);
            _blocks = new FileBlockCollection(this);

            FilePath = filePath;
            FileName = fileName;
        }
 /// <summary>
 /// 默认构造函数
 /// </summary>
 public FileTransmission()
 {
     FinishedBlock = new List<int>();
     WaitHandle = new EventWaitHandle(false, EventResetMode.ManualReset);
     _blocks = new FileBlockCollection(this);
 }
Exemple #4
0
 /// <summary>
 /// 默认构造函数
 /// </summary>
 public FileTransmission()
 {
     FinishedBlock = new List <int>();
     WaitHandle    = new EventWaitHandle(false, EventResetMode.ManualReset);
     _blocks       = new FileBlockCollection(this);
 }