text: 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;}