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; }
protected SshTransport(Repository local, URIish uri) : base(local, uri) { sch = SshSessionFactory.Instance; }