Пример #1
0
        public void RestFtpSession()
        {
            Packetizer.Reset();
            Encoding         = Server.Configuration.Encoding;
            TransferMode     = FtpTransferMode.Ascii;
            Status           = FtpSessionStatus.NotLogin;
            User             = null;
            CurrentStatement = null;
            CurrentDir       = RootPath;
            FileOffset       = 0;
            UpFileFailed     = false;
            UpFileLocalPath  = null;

            var stream = UpFileStream;

            UpFileStream = null;

            if (stream != null)
            {
                stream.Close();
            }
        }
		public void RestFtpSession()
		{
			Packetizer.Reset();
			Encoding = Server.Configuration.Encoding;
			TransferMode = FtpTransferMode.Ascii;
			Status = FtpSessionStatus.NotLogin;
			User = null;
			CurrentStatement = null;
			CurrentDir = RootPath;
			FileOffset = 0;
			UpFileFailed = false;
			UpFileLocalPath = null;

			var stream = UpFileStream;
			UpFileStream = null;

			if(stream != null)
				stream.Close();
		}