ClientExtensionsPositionSetAsync Method
Returns an awaitable, running,
Task that moves the filter wheel to the specified filter wheel position
Namespace: ASCOM.CommonAssembly: ASCOM.Common (in ASCOM.Common.dll) Version: 4.0.0+77e18c564bf9ecdb0ef30166e894390d1b7d077c
public static Task PositionSetAsync(
this IFilterWheelV2 device,
int position,
CancellationToken cancellationToken = default,
int pollInterval = 1000,
ILogger logger = null
)
<ExtensionAttribute>
Public Shared Function PositionSetAsync (
device As IFilterWheelV2,
position As Integer,
Optional cancellationToken As CancellationToken = Nothing,
Optional pollInterval As Integer = 1000,
Optional logger As ILogger = Nothing
) As Task
- device IFilterWheelV2
- The FilterWheel device
- position Int32
- The required filter wheel position
- 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 filter wheel is at the required positionIn Visual Basic and C#, you can call this method as an instance method on any object of type
IFilterWheelV2. 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: .NET Standard 2.0, .NET 8 .NET 9. .NET 10