AlpacaDiscovery(Boolean, ILogger, String, String) Constructor
Note: This API is now obsolete.
Initialiser that takes a trace logger (Can only be used from .NET clients)
Namespace: ASCOM.Alpaca.DiscoveryAssembly: ASCOM.Alpaca (in ASCOM.Alpaca.dll) Version: 4.0.0+77e18c564bf9ecdb0ef30166e894390d1b7d077c
[ObsoleteAttribute("The strictCasing logic is inverted but for backward compatibility will not be changed. Use the "JsonNameCaseSensitivity, ILogger" constructor to explicitly set required behaviour.")]
public AlpacaDiscovery(
bool strictCasing,
ILogger logger,
string productName = "ASCOMLibrary",
string productVersion = null
)
<ObsoleteAttribute("The strictCasing logic is inverted but for backward compatibility will not be changed. Use the "JsonNameCaseSensitivity, ILogger" constructor to explicitly set required behaviour.")>
Public Sub New (
strictCasing As Boolean,
logger As ILogger,
Optional productName As String = "ASCOMLibrary",
Optional productVersion As String = Nothing
)
- strictCasing Boolean
- Trace logger instance to use for activity logging
- logger ILogger
- Trace logger instance to use for activity logging
- productName String (Optional)
- Product name in the User-Agent header of management API HTTP calls
- productVersion String (Optional)
- Product version in the User-Agent header of management API HTTP calls
Obsolete (compiler warning) in .NET Standard 2.0, .NET 8 .NET 9. .NET 10