Getting FTP server response codes
Hello everyone,
I'm using the WinSCP's .NET library with C#. I was wondering if you guys could help with an issue I'm having.
I have a service set up to go through a list of ftp connections. One specific ftp server once in a while will respond with Code 426 (Connection closed; transfer aborted.) and when this happens I need to run custom logic.
I'm unable to find anything within the .NET assembly that could return me the actual code. I see that they are being logged in the session log along with the description, but I'm trying to stay away from having to parse through the log.
Is there any methods/events that I'm overlooking that could help with this?
Or is WinSCP's .NET assembly unable to handle this atm?
Any help will be appreciated.
Thank you.
I'm using the WinSCP's .NET library with C#. I was wondering if you guys could help with an issue I'm having.
I have a service set up to go through a list of ftp connections. One specific ftp server once in a while will respond with Code 426 (Connection closed; transfer aborted.) and when this happens I need to run custom logic.
I'm unable to find anything within the .NET assembly that could return me the actual code. I see that they are being logged in the session log along with the description, but I'm trying to stay away from having to parse through the log.
Is there any methods/events that I'm overlooking that could help with this?
Or is WinSCP's .NET assembly unable to handle this atm?
Any help will be appreciated.
Thank you.