Class DropboxClientConfig
The class which contains all configurations for Dropbox client.
Inheritance
Inherited Members
Namespace: Dropbox.Api
Assembly: Dropbox.Api.dll
Syntax
public sealed class DropboxClientConfig
Constructors
| Improve this Doc View SourceDropboxClientConfig()
Initializes a new instance of the DropboxClientConfig class.
Declaration
public DropboxClientConfig()
DropboxClientConfig(String)
Initializes a new instance of the DropboxClientConfig class.
Declaration
public DropboxClientConfig(string userAgent)
Parameters
Type | Name | Description |
---|---|---|
System.String | userAgent | The user agent to use when making requests. |
DropboxClientConfig(String, Int32)
Initializes a new instance of the DropboxClientConfig class.
Declaration
public DropboxClientConfig(string userAgent, int maxRetriesOnError)
Parameters
Type | Name | Description |
---|---|---|
System.String | userAgent | The user agent to use when making requests. |
System.Int32 | maxRetriesOnError | The max number retries on error. |
Properties
| Improve this Doc View SourceHttpClient
Gets or sets the custom http client. If not set, a default http client will be created.
Declaration
public HttpClient HttpClient { get; set; }
Property Value
Type | Description |
---|---|
HttpClient |
LongPollHttpClient
Gets or sets the custom http client for long poll request. If not set, a default http client with a longer timeout (480 seconds) will be created.
Declaration
public HttpClient LongPollHttpClient { get; set; }
Property Value
Type | Description |
---|---|
HttpClient |
MaxRetriesOnError
Gets or sets the max number retries on error. Default value is 4.
Declaration
public int MaxRetriesOnError { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
UserAgent
Gets or sets the user agent to use when making requests.
Declaration
public string UserAgent { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Remarks
This value helps Dropbox to identify requests coming from your application.
We recommend that you use the format "AppName/Version"
; if a value is supplied, the string
"/OfficialDropboxDotNetV2SDK/version"
is appended to the user agent.