ServiceFactory.NET.cs 878 B

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