예제 #1
0
        public Connectivity(string ip, string userName, string password, int port = 8728)
        {
            mikrotik = new MK(ip,port);

            if (!mikrotik.Login(userName, password))
                throw new System.Exception("Login incorrect!");
        }
예제 #2
0
        public Connectivity(string ip, string userName, string password, int port = 8728)
        {
            mikrotik = new MK(ip, port);

            if (!mikrotik.Login(userName, password))
            {
                throw new System.Exception("Login incorrect!");
            }
        }