ContentstackClientOptions

View as Markdown

ContentstackClientOptions

ContentstackClientOptions class is base class for Contentstack Configuration.

NameTypeDescription
Authtoken string

An Authtoken is a read-write token used to make authorized CMA requests.

DisableLogging bool

Gets or sets the DisableLogging. When set to true, the logging of the client is disabled. The default value is false.

Host string

The Host used to set host url for the Contentstack Management API.

MaxResponseContentBufferSize long

Gets or sets the maximum number of bytes to buffer when reading the response content.

Port int

The Host used to set host url for the Contentstack Management API.

ProxyCredentials ICredentials

Credentials to use with a proxy.

ProxyHost string

Host for the Proxy.

ProxyPort int

Port for the Proxy.

RetryDelay TimeSpan

Returns the flag indicating delay in retrying HTTP requests.

RetryLimit int

Returns the flag indicating how many retry HTTP requests an SDK should make for a single SDK operation invocation before giving up.

RetryOnError bool

When set to true, the client will retry requests. When set to false, the client will not retry request.

RetryPolicy RetryPolicy

The retry policy which specifies when a retry should be performed.

Timeout TimeSpan

Gets or sets the timespan to wait before the request times out.

Version string

The Host used to set host url for the Contentstack Management API.

GetUri

Returns a Uri instance configured in the configuration.

GetWebProxy

Returns a WebProxy instance configured to match the proxy settings in the configuration.