Ejemplo n.º 1
0
 public void setSshSessionFactory(SshSessionFactory factory)
 {
     if (factory == null)
         throw new ArgumentException("The factory must not be null");
     if (sock != null)
         throw new ApplicationException("An SSH session has already been created");
     sch = factory;
 }
Ejemplo n.º 2
0
 protected SshTransport(Repository local, URIish uri)
     : base(local, uri)
 {
     sch = SshSessionFactory.Instance;
 }