ServiceFactory.NET.cs 832 B

123456789101112131415161718192021
  1. using Renci.SshNet.NetConf;
  2. namespace Renci.SshNet
  3. {
  4. internal partial class ServiceFactory
  5. {
  6. /// <summary>
  7. /// Creates a new <see cref="INetConfSession"/> in a given <see cref="ISession"/>
  8. /// and with the specified operation timeout.
  9. /// </summary>
  10. /// <param name="session">The <see cref="ISession"/> to create the <see cref="INetConfSession"/> in.</param>
  11. /// <param name="operationTimeout">The number of milliseconds to wait for an operation to complete, or -1 to wait indefinitely.</param>
  12. /// <returns>
  13. /// An <see cref="INetConfSession"/>.
  14. /// </returns>
  15. public INetConfSession CreateNetConfSession(ISession session, int operationTimeout)
  16. {
  17. return new NetConfSession(session, operationTimeout);
  18. }
  19. }
  20. }