Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Session session = null;
- try
- {
- // Setup session options
- SessionOptions sessionOptions = new SessionOptions
- {
- Protocol = Protocol.Ftp,
- HostName = HostName,
- UserName = UserName,
- Password = Password,
- Timeout = TimeSpan.FromDays(1),
- };
- using (session = new Session())
- {
- // Connect
- session.Open(sessionOptions);
Add Comment
Please, Sign In to add comment