Skip to content

SnowConfiguration Class ​

Definition ​

Provides connection-wide configuration for accessing a ServiceNow instance such as the base URL, request limits, and caching policy. Authentication is owned by AuthenticationContext.

  • Namespace: JASE.ServiceNow
  • Assembly: JASE.ServiceNow.dll

Properties ​

NameDescription
CacheModeSpecifies the Cache Mode for caching of database operational data (Default: Unified)
MaxConnectionsMaximum number of simultaneoud connections to the ServiceNow instance (Default: 4)
MaxQueryResultsGets the maximum number of query results to return from a ServiceNow request.
MemoryCachePercentReturns the percentage of memory (Default: 5%)
ReservedMemoryCacheBytesReturns the number of bytes that should be reserved for MemoryCache
ResolveReferenceFieldsWhen true, Reference fields are resolved during the Create process (Default: false)
TransactionRetryAttemptsThe number of times failed transaction should be retried before failing (Default: 5)
UrlGets the base URL of the ServiceNow instance.

Methods ​

NameDescription
void SetCacheMode(CacheMode cacheMode)Sets the value CacheMode
bool SetInstanceUrl(string url)Sets the base URL of the ServiceNow instance.
bool SetMaxConnections(int value)Set the value for MaxConnections. Must be in the range of 1-100.
bool SetMemoryCachePercent(int value)Sets the value for MemoryCachePercent. Must be in the range of 1-50.
bool SetTransactionRetryAttempts(int value)Sets the value for TransactionRetryAttempts. Must be in the range of 0-25.