ServiceFactory.NET.cs 803 B

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