-
Notifications
You must be signed in to change notification settings - Fork 3
Core
- ApiError
- ApiException
- CloudHttpConfiguration
- HttpConfiguration
- HttpConfigurationManager
- IHttpConfiguration
NationalInstruments.SystemLink.Clients.Core
Represents the standard error structure for SystemLink API responses.
Gets or sets the list of positional arguments formatted into the error.
Gets or sets the numeric code associated with the error.
Gets or sets the list of inner errors.
Gets or sets the error message.
Gets or sets the name of the error.
Gets or sets the ID of the resource associated with the error, if any. Set ResourceType when setting this property.
Gets or sets the type of resource associated with the error, if any. Set this when setting ResourceId.
NationalInstruments.SystemLink.Clients.Core
Represents errors that occur when calling SystemLink APIs.
Initializes an empty exception.
This constructor has no parameters.
Initializes an exception with a message.
| Name | Type | Description |
|---|---|---|
| message | System.String | The message describing the error. |
Initializes an exception from an ApiError.
| Name | Type | Description |
|---|---|---|
| error | NationalInstruments.SystemLink.Clients.Core.ApiError | The error returned by the API. |
Initializes an exception with a message and inner exception.
| Name | Type | Description |
|---|---|---|
| message | System.String | The message describing the error. |
| inner | System.Exception | The inner exception that caused the error. |
Initializes an exception from an ApiError with an inner exception.
| Name | Type | Description |
|---|---|---|
| error | NationalInstruments.SystemLink.Clients.Core.ApiError | The error returned by the API. |
| inner | System.Exception | The inner exception that caused the error. |
Deserializes an exception.
This constructor has no parameters.
Gets the error information returned by the SystemLink API, or null if the API did not return one or the error occurred trying to call the API.
Inherit from parent.
This method has no parameters.
NationalInstruments.SystemLink.Clients.Core
An HttpConfiguration specifically for use with SystemLink Cloud.
Initializes a configuration for SystemLink Cloud using API key-based authentication.
| Name | Type | Description |
|---|---|---|
| apiKey | System.String | The API key to send with requests. |
| Name | Description |
|---|---|
| System.ArgumentNullException | if apiKey is null. |
NationalInstruments.SystemLink.Clients.Core
Contains common configuration information for using HTTP client APIs for SystemLink.
Initializes a configuration with anonymous access. Any API calls that require authorization will fail.
| Name | Type | Description |
|---|---|---|
| serverUri | System.Uri | The scheme, host, and port (if not default) |
| of the web server hosting the SystemLink service to connect to. | ||
| Additional Uri properties such as PathAndQuery are ignored. |
| Name | Description |
|---|---|
| System.ArgumentNullException | if serverUri is null. |
| System.ArgumentException | if serverUri is missing scheme or host information. |
Initializes a configuration with username and password-based HTTP authentication. Only valid for SystemLink server. HTTPS is highly recommended: sending a password over HTTP can be intercepted by other devices with access to the network.
| Name | Type | Description |
|---|---|---|
| serverUri | System.Uri | The scheme, host, and port (if not default) |
| of the web server hosting the SystemLink service to connect to. | ||
| Additional Uri properties such as PathAndQuery are ignored. | ||
| username | System.String | The name of the user to use when authorization is required. |
| password | System.String | The user's password to use when authorization is required. |
| Name | Description |
|---|---|
| System.ArgumentNullException | if serverUri, |
username, or password is null. |
|
| System.ArgumentException | if serverUri is missing scheme or host information. |
Initializes a configuration with API key-based authentication. Only valid for SystemLink cloud. HTTPS is highly recommended: sending an API key over HTTP can be intercepted by other devices with access to the network.
| Name | Type | Description |
|---|---|---|
| serverUri | System.Uri | The scheme, host, and port (if not default) |
| of the web server hosting the SystemLink service to connect to. | ||
| Additional Uri properties such as PathAndQuery are ignored. | ||
| apiKey | System.String | The API key to send with requests. |
| Name | Description |
|---|---|
| System.ArgumentNullException | if serverUri or apiKey is null. |
| System.ArgumentException | if serverUri is missing scheme or host information. |
The default value of TimeoutMilliseconds to use when making API calls.
Gets the available API keys to use for authorization, or null if none were provided.
Gets the password to use for HTTP authentication, or null if none was provided.
Gets the Scheme, Host, and Port of the web server hosting the SystemLink service to connect to. Additional Uri properties such as PathAndQuery are ignored.
Gets or sets the number of milliseconds before a request times out with an error. Changing the timeout will not affect APIs that have already read the configuration.
Gets or sets the string to pass the web server as the product name or names making the request, or null to use a library-specific default. Changing the user-agent will not affect APIs that have already read the configuration.
Gets the username to use for HTTP authentication, or null if none was provided.
NationalInstruments.SystemLink.Clients.Core
Factory for HttpConfiguration objects.
The default ID of the SystemLink Server's configuration on the SystemLink Server itself.
The default ID of the SystemLink Server's configuration on systems registered using SystemLink Client.
Gets the default configuration.
The default configuration.
This method has no parameters.
| Name | Description |
|---|---|
| NationalInstruments.SystemLink.Clients.Core.ApiException | if the default configuration is not found. |
Gets a configuration by ID.
The configuration.
| Name | Type | Description |
|---|---|---|
| id | System.String | The ID of the configuration to find. |
| enableFallbacks | System.Boolean | Whether or not to fallback to other known configurations, if id is unavailable. |
| Name | Description |
|---|---|
| System.ArgumentException | if id is null and enableFallbacks is false. |
| NationalInstruments.SystemLink.Clients.Core.ApiException | if no configuration with the provided ID is found, and no fallbacks were viable. |
NationalInstruments.SystemLink.Clients.Core
Represents the configuration for accessing a SystemLink service over HTTP.
Gets the available API keys to use for authorization, or null if none were provided.
Gets the password to use for HTTP authentication, or null if none was provided.
Gets the Scheme, Host, and Port of the web server hosting the SystemLink service to connect to. Additional Uri properties such as PathAndQuery are ignored.
Gets the number of milliseconds before a request times out with an error.
Gets the string to pass the web server as the product name or names making the request, or null to use a library-specific default.
Gets the username to use for HTTP authentication, or null if none was provided.