Beispiel #1
0
        public static void StartRobot()
        {
            var host = ConfigurationManager.AppSettings["jibbr:host"];
            var userName = ConfigurationManager.AppSettings["jibbr:username"];
            var password = ConfigurationManager.AppSettings["jibbr:password"];

            _robot = CreateRobot();

            _robotTask = Task.Factory.StartNew(() =>
            {
                try
                {
                    _robot.SetupClient(new Uri(host));

                    _robot.Connect(userName, password);
                }
                catch
                {
                    _robot.Disconnect();
                }
            });
        }