This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.IO; | |
using System.Net; | |
using System.Net.FtpClient; | |
using System.Threading.Tasks; | |
namespace FtpClientSample | |
{ | |
class Program | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
First line is not returning result so it is not executing remaining three line please help me solve this problem. | |
string fileName = ftpFileManager.DownloadFileAsync("products2.dat", "foo").Result; // Not returning result | |
Console.WriteLine(fileName); // Not executing | |
Console.WriteLine("Done"); // Not executing | |
Console.ReadLine(); // Not executing |