AlpacaDome(ServiceType, String, Int32, Int32, Int32, Int32, Int32, UInt32, String, String, Boolean, ILogger, String, String, Boolean, Boolean) Constructor
Create an Alpaca Dome device specifying all parameters
Namespace: ASCOM.Alpaca.ClientsAssembly: ASCOM.Alpaca (in ASCOM.Alpaca.dll) Version: 3.0.0-rc.1+86c25ce733aebb4d8b1b8a62e84770ea5e972bea
public AlpacaDome(
ServiceType serviceType = ServiceType.Http,
string ipAddressString = "127.0.0.1",
int portNumber = 11111,
int remoteDeviceNumber = 0,
int establishConnectionTimeout = 5,
int standardDeviceResponseTimeout = 10,
int longDeviceResponseTimeout = 100,
uint clientNumber = 1,
string userName = "",
string password = "",
bool strictCasing = true,
ILogger logger = null,
string userAgentProductName = null,
string userAgentProductVersion = null,
bool trustUserGeneratedSslCertificates = false,
bool request100Continue = false
)
Public Sub New (
Optional serviceType As ServiceType = ServiceType.Http,
Optional ipAddressString As String = "127.0.0.1",
Optional portNumber As Integer = 11111,
Optional remoteDeviceNumber As Integer = 0,
Optional establishConnectionTimeout As Integer = 5,
Optional standardDeviceResponseTimeout As Integer = 10,
Optional longDeviceResponseTimeout As Integer = 100,
Optional clientNumber As UInteger = 1,
Optional userName As String = "",
Optional password As String = "",
Optional strictCasing As Boolean = true,
Optional logger As ILogger = Nothing,
Optional userAgentProductName As String = Nothing,
Optional userAgentProductVersion As String = Nothing,
Optional trustUserGeneratedSslCertificates As Boolean = false,
Optional request100Continue As Boolean = false
)
- serviceType ServiceType (Optional)
- HTTP or HTTPS
- ipAddressString String (Optional)
- Alpaca device's IP Address
- portNumber Int32 (Optional)
- Alpaca device's IP Port number
- remoteDeviceNumber Int32 (Optional)
- Alpaca device's device number e.g. Telescope/0
- establishConnectionTimeout Int32 (Optional)
- Timeout (seconds) to initially connect to the Alpaca device
- standardDeviceResponseTimeout Int32 (Optional)
- Timeout (seconds) for transactions that are expected to complete quickly e.g. retrieving CanXXX properties
- longDeviceResponseTimeout Int32 (Optional)
- Timeout (seconds) for transactions that are expected to take a long time to complete e.g. Camera.ImageArray
- clientNumber UInt32 (Optional)
- Arbitrary integer that represents this client. (Should be the same for all transactions from this client)
- userName String (Optional)
- Basic authentication user name for the Alpaca device
- password String (Optional)
- basic authentication password for the Alpaca device
- strictCasing Boolean (Optional)
- Tolerate or throw exceptions if the Alpaca device does not use strictly correct casing for JSON object element names.
- logger ILogger (Optional)
- Optional ILogger instance that can be sued to record operational information during execution
- userAgentProductName String (Optional)
- Optional product name to include in the User-Agent HTTP header sent to the Alpaca device
- userAgentProductVersion String (Optional)
- Optional product version to include in the User-Agent HTTP header sent to the Alpaca device
- trustUserGeneratedSslCertificates Boolean (Optional)
- Trust user generated SSL certificates
- request100Continue Boolean (Optional)
- Request 100-continue behaviour for HTTP requests. Defaults to false.
Supported in: 2.0