Renci.SshNet.ServiceFactory.CreateNetConfSession C# (CSharp) Method

CreateNetConfSession() public method

Creates a new INetConfSession in a given ISession and with the specified operation timeout.
public CreateNetConfSession ( ISession session, System.TimeSpan operationTimeout ) : INetConfSession
session ISession The to create the in.
operationTimeout System.TimeSpan The operation timeout.
return INetConfSession
        public INetConfSession CreateNetConfSession(ISession session, TimeSpan operationTimeout)
        {
            return new NetConfSession(session, operationTimeout);
        }
    }

Usage Example

Exemplo n.º 1
0
        /// <summary>
        /// Called when client is connected to the server.
        /// </summary>
        protected override void OnConnected()
        {
            base.OnConnected();

            _netConfSession = ServiceFactory.CreateNetConfSession(Session, OperationTimeout);
            _netConfSession.Connect();
        }
All Usage Examples Of Renci.SshNet.ServiceFactory::CreateNetConfSession