ClientExtensionsCloseCoverAsync Method
Returns an awaitable, running,
Task that closes the cover
Namespace: ASCOM.CommonAssembly: ASCOM.Common (in ASCOM.Common.dll) Version: 2.2.1+77356f79b05b579f6d860a4edd5934fda9fe29e4
public static Task CloseCoverAsync(
this ICoverCalibratorV1 device,
CancellationToken cancellationToken = default,
int pollInterval = 1000,
ILogger logger = null
)
<ExtensionAttribute>
Public Shared Function CloseCoverAsync (
device As ICoverCalibratorV1,
Optional cancellationToken As CancellationToken = Nothing,
Optional pollInterval As Integer = 1000,
Optional logger As ILogger = Nothing
) As Task
- device ICoverCalibratorV1
- The CoverCalibrator device
- cancellationToken CancellationToken (Optional)
- Cancellation token - Default: None
- pollInterval Int32 (Optional)
- Interval between polls of the completion variable (milliseconds) - Default: 1000 milliseconds.
- logger ILogger (Optional)
- ILogger instance that will receive operation messages from the method - Default: No logger
TaskAwaitable task that ends when the cover is closedIn Visual Basic and C#, you can call this method as an instance method on any object of type
ICoverCalibratorV1. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
Supported in: 2.0