Skip to main content

Class RequestOptions

Namespace: SuperOffice.WebApi
Assembly: SuperOffice.WebApi.dll
Customize this particular request with special language code or timezone specifics.

Inheritance

objectRequestOptions

Derived

WebApiOptions

Inherited Members

object.ToString(), object.Equals(object), object.Equals(object, object), object.ReferenceEquals(object, object), object.GetHashCode(), object.GetType(), object.MemberwiseClone()

Constructors

RequestOptions()

Default request configuration

RequestOptions(CancellationToken)

Request configuration with a CancellationToken.

Parameters

token CancellationToken

RequestOptions(string)

Request configuration with a language

Parameters

languageCode string ISO2 Language code: “sv”, “de”, “en” etc

RequestOptions(string, CancellationToken)

Request configuration with a language

Parameters

languageCode string ISO2 Language code: “sv”, “de”, “en” etc token CancellationToken Token to indicate a cancel signal.

Fields

DefaultTimeout

Field Value

TimeSpan

Properties

CultureCode

Controls number and date formatting. ISO 2 language code: “nb-no”, “en”, “sv” etc

Property Value

string

CustomHeaders

Custom headers appended to each request.

Property Value

StringDictionary

LanguageCode

Controls string parsing/substitution. ISO 2 language code: “nb-no”, “en”, “sv” etc

Property Value

string

TimeZone

TimeZone code: “UTC” or similar timezone name or id.

Property Value

string

TimeZoneIncludeOffset

Ask server to include timezone offset in returned datetime values

Property Value

bool?

Timeout

Request timeout in milliseconds. Default 30 seconds.

Property Value

TimeSpan