Appearance
ConnectionContext Class
Definition
Encapsulates connection settings for a ServiceNow instance, including the instance base URL, authentication details, and HTTP connection limits.
- Namespace:
JASE.ServiceNow - Assembly:
JASE.ServiceNow.dll
Constructors
| Name | Description |
|---|---|
ConnectionContext(AuthenticationContext authentication) | Creates a new ConnectionContext using the provided authentication settings. |
Properties
| Name | Description |
|---|---|
Authentication | Authentication configuration used to generate HTTP request headers. |
Default | Returns a new ConnectionContext initialized from SnowConfiguration. |
MaxConnections | Maximum number of simultaneous connections to the ServiceNow instance. |
Url | Gets the base URL of the ServiceNow instance (e.g., https://instance.service-now.com). |
Methods
| Name | Description |
|---|---|
bool SetInstanceUrl(string url) | Sets the base URL of the ServiceNow instance. |
void SetMaxConnections(int value) | Sets the maximum number of simultaneous connections to the ServiceNow instance. |
Remarks
The Default context is initialized from SnowConfiguration and the current Default. This type is intended to be lightweight and passed to ServiceNow client operations.