Add hostname property to events for multi-threaded apps
I am currently writing a multi-threaded app to transfer files to multiple servers. Unfortunately, when an event is fired, there are no properties that expose the hostname of the sender. I have had to implement a dictionary class to do a lookup using the endpoint class IP. Doing it this way works, but it strikes me as kludgey since I'm sure the sftp/ssh class knows the hostname.
Released as a part of build 3843 http://www.rebex.net/sftp.net/history.aspx#3843
You can use Sftp.ServerName and Sftp.ServerPort
-
AdminLukas Pokorny (Admin, Rebex) commented
This is a good idea, we will add this into the next release. But instead of adding the property to event arguments, we will more likely add it into the Sftp object itself (which is accessible through the event arguments).