Renci.SshNet.NetConfClient.SendCloseRpc C# (CSharp) Method

SendCloseRpc() public method

Sends the close RPC.
Client is not connected.
public SendCloseRpc ( ) : XmlDocument
return System.Xml.XmlDocument
        public XmlDocument SendCloseRpc()
        {
            var rpc = new XmlDocument();
            rpc.LoadXml("<?xml version=\"1.0\" encoding=\"UTF-8\"?><rpc message-id=\"6666\" xmlns=\"urn:ietf:params:xml:ns:netconf:base:1.0\"><close-session/></rpc>");
            return _netConfSession.SendReceiveRpc(rpc, AutomaticMessageIdHandling);
        }