/// <summary> /// Change the JVM-wide factory to a different implementation. /// </summary> /// <param name="newFactory"> /// factory for future sessions to be created through. If null the /// default factory will be restored. /// </param> public static void setInstance(SshSessionFactory newFactory) { if (newFactory != null) Instance = newFactory; else { Instance = new DefaultSshSessionFactory(); } }
/// <summary> /// Create a new transport instance. /// </summary> /// <param name="local"> /// the repository this instance will fetch into, or push out of. /// This must be the repository passed to /// <see cref="Transport.open(GitSharp.Core.Repository,GitSharp.Core.Transport.URIish)"/>. /// </param> /// <param name="uri"> /// the URI used to access the remote repository. This must be the /// URI passed to {@link #open(Repository, URIish)}. /// </param> protected SshTransport(Repository local, URIish uri) : base(local, uri) { _sch = SshSessionFactory.Instance; }
protected SshTransport(Repository local, URIish uri) : base(local, uri) { _sch = SshSessionFactory.Instance; }