Appearance
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
| Name | Description |
|---|---|
CacheMode | Specifies the Cache Mode for caching of database operational data (Default: Unified) |
MaxConnections | Maximum number of simultaneoud connections to the ServiceNow instance (Default: 4) |
MaxQueryResults | Gets the maximum number of query results to return from a ServiceNow request. |
MemoryCachePercent | Returns the percentage of memory (Default: 5%) |
ReservedMemoryCacheBytes | Returns the number of bytes that should be reserved for MemoryCache |
ResolveReferenceFields | When true, Reference fields are resolved during the Create process (Default: false) |
TransactionRetryAttempts | The number of times failed transaction should be retried before failing (Default: 5) |
Url | Gets the base URL of the ServiceNow instance. |
Methods
| Name | Description |
|---|---|
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. |