Exemplo n.º 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!");
        }
Exemplo n.º 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!");
            }
        }