ClientExtensions Class

Asynchronous extensions for the Alpaca clients and COM clients that return awaitable tasks for long running methods.

Definition

Namespace: ASCOM.Common
Assembly: ASCOM.Common (in ASCOM.Common.dll) Version: 3.0.0-rc.1+86c25ce733aebb4d8b1b8a62e84770ea5e972bea
C#
public static class ClientExtensions
Inheritance
Object    ClientExtensions

Methods

AbortSlewAsync(IDomeV2, CancellationToken, Int32, ILogger) Returns an awaitable, running, Task that halts all dome movement
AbortSlewAsync(ITelescopeV3, CancellationToken, Int32, ILogger) Returns an awaitable, running, Task that stops telescope slewing movement
CalibratorOffAsync Returns an awaitable, running, Task that turns the calibrator off
CalibratorOnAsync Returns an awaitable, running, Task that turns the calibrator on
CloseCoverAsync Returns an awaitable, running, Task that closes the cover
CloseShutterAsync Returns an awaitable, running, Task that closes the dome shutter
ConnectAsync Returns an awaitable, running, Task that connects to the device. (Polls IAscomDeviceV2.Connecting)
DisconnectAsync Returns an awaitable, running, Task that disconnects from the device. (Polls IAscomDeviceV2.Connecting)
FindHomeAsync(IDomeV2, CancellationToken, Int32, ILogger) Returns an awaitable, running, Task that moves the dome to the home position
FindHomeAsync(ITelescopeV3, CancellationToken, Int32, ILogger) Returns an awaitable, running, Task that moves the telescope to the home position
HaltAsync(IFocuserV3, CancellationToken, Int32, ILogger) Returns an awaitable, running, Task that halts focuser movement
HaltAsync(IRotatorV3, CancellationToken, Int32, ILogger) Returns an awaitable, running, Task that halts rotator movement
HaltCoverAsync Returns an awaitable, running, Task that halts cover movement
MoveAbsoluteAsync Returns an awaitable, running, Task that moves the rotator to the specified absolute position
MoveAsync(IFocuserV3, Int32, CancellationToken, Int32, ILogger) Returns an awaitable, running, Task that moves to the specified focuser position
MoveAsync(IRotatorV3, Double, CancellationToken, Int32, ILogger) Returns an awaitable, running, Task that moves the rotator to the specified relative position
MoveMechanicalAsync Returns an awaitable, running, Task that moves the rotator to the specified mechanical position
OpenCoverAsync Returns an awaitable, running, Task that opens the cover
OpenShutterAsync Returns an awaitable, running, Task that opens the dome shutter
ParkAsync(IDomeV2, CancellationToken, Int32, ILogger) Returns an awaitable, running, Task that parks the dome
ParkAsync(ITelescopeV3, CancellationToken, Int32, ILogger) Returns an awaitable, running, Task that parks the telescope
PositionSetAsync Returns an awaitable, running, Task that moves the filter wheel to the specified filter wheel position
SetAsync Returns an awaitable, running, Task that sets the switch to a given boolean state
SetAsyncValue Returns an awaitable, running, Task that sets the switch to a given value
SlewToAltAzTaskAsync Returns an awaitable, running, Task that slews the telescope to the specified altitude / azimuth coordinates
SlewToAltitudeAsync Returns an awaitable, running, Task that slews the dome to the specified altitude
SlewToAzimuthAsync Returns an awaitable, running, Task that slews the dome to the specified azimuth
SlewToCoordinatesTaskAsync Returns an awaitable, running, Task that slews the telescope to the specified RA/Dec coordinates
SlewToTargetTaskAsync Returns an awaitable, running, Task that slews the telescope to the coordinates specified by the TargetRA and TargetDeclination properties
StartExposureAsync Returns an awaitable, running, Task that takes a camera image
StopExposureAsync Returns an awaitable, running, Task that stops the current camera exposure
UnparkAsync Returns an awaitable, running, Task that un-parks the telescope

Version Information

.NET Standard

Supported in: 2.0

See Also