public void setSshSessionFactory(SshSessionFactory factory) {if (factory == null)throw new NullPointerException(JGitText.get().theFactoryMustNotBeNull);if (sock != null)throw new IllegalStateException(JGitText.get().anSSHSessionHasBeenAlreadyCreated);sch = factory;}
public virtual void SetSshSessionFactory(SshSessionFactory factory){if (factory == null){throw new ArgumentNullException(JGitText.Get().theFactoryMustNotBeNull);}if (sock != null){throw new InvalidOperationException(JGitText.Get().anSSHSessionHasBeenAlreadyCreated);}sch = factory;}