Skip to content

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 ​

NameDescription
ConnectionContext(AuthenticationContext authentication)Creates a new ConnectionContext using the provided authentication settings.

Properties ​

NameDescription
AuthenticationAuthentication configuration used to generate HTTP request headers.
DefaultReturns a new ConnectionContext initialized from SnowConfiguration.
MaxConnectionsMaximum number of simultaneous connections to the ServiceNow instance.
UrlGets the base URL of the ServiceNow instance (e.g., https://instance.service-now.com).

Methods ​

NameDescription
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.