Esempio n. 1
0
 /// <summary>
 ///     Connects to the device.
 /// </summary>
 /// <exception cref="ASCOM.DriverException">
 ///     Failed to connect. Open apparently succeeded but then the device reported that
 ///     is was offline.
 /// </exception>
 private void Connect()
 {
     //connectedState = true;
     telescope = SharedResources.ConnectionManager.GoOnline(clientId);
     if (!telescope.IsOnline)
     {
         log.Error("Connect failed - device reported offline");
         throw new DriverException(
                   "Failed to connect. Open apparently succeeded but then the device reported that is was offline.");
     }
     telescope.PerformOnConnectTasks();
 }