AlpacaSwitch(ServiceType, String, Int32, Int32, Int32, Int32, Int32, UInt32, String, String, Boolean, ILogger, String, String, Boolean, Boolean) Constructor

Create an Alpaca Switch device specifying all parameters

Definition

Namespace: ASCOM.Alpaca.Clients
Assembly: ASCOM.Alpaca (in ASCOM.Alpaca.dll) Version: 3.0.0-rc.1+86c25ce733aebb4d8b1b8a62e84770ea5e972bea
C#
public AlpacaSwitch(
	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
)

Parameters

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.

Version Information

.NET Standard

Supported in: 2.0

See Also