Menu

Plausible functionality: SshBase IDisposable

Anonymous
2013-05-06
2013-05-28
  • Anonymous

    Anonymous - 2013-05-06

    Would be great if SshBase were IDisposable. In this way, one use case might go something like this:

    using (var session = new SshExec(...) { /* do something using the session */ }
    

    Following which, the expected disposable behavior would be to transparently close out of whatever Ssh (or other secure) session was in progress.

     
  • Anonymous

    Anonymous - 2013-05-06

    Mind the syntax error; you get the idea though.

    using (var session = new SshExec(...)) { /* do something using the session */ }
    
     

Log in to post a comment.

MongoDB Logo MongoDB