Skip to content

CloudMapClient

Namespace: ThinkGeo.Core

public class CloudMapClient

Inheritance ObjectCloudMapClient

Properties

IsOpen

public bool IsOpen { get; set; }

Property Value

Boolean

Uris

public Collection<Uri> Uris { get; }

Property Value

Collection<Uri>

TimeoutInSeconds

The request timeout, default 100 seconds

public int TimeoutInSeconds { get; set; }

Property Value

Int32

ClientId

A GIS Server NativeConfidential client ID.

public string ClientId { get; set; }

Property Value

String

ClientSecret

A GIS Server NativeConfidential client secret.

public string ClientSecret { get; set; }

Property Value

String

WebProxy

The proxy used for requesting a Web Response.

public IWebProxy WebProxy { get; set; }

Property Value

IWebProxy

Constructors

CloudMapClient()

public CloudMapClient()

CloudMapClient(String, String)

This method is the default protected constructor with a NativeConfidential client ID and secret. It will send a request to the GIS Server to acquire an access token, which will then be added to the Header for all future requests.

public CloudMapClient(string clientId, string clientSecret)

Parameters

clientId String
The NativeConfidential client Id with which to authenticate.

clientSecret String
The NativeConfidential client secret with which to authenticate.

Exceptions

ArgumentNullException
Thrown when the or is null.

Methods

Open()

public void Open()

CreateWebRequest(String, String, String, String, Int32, IWebProxy, Boolean)

public WebRequest CreateWebRequest(string apiPath, string method, string parameters, string body, int timeoutInSeconds, IWebProxy webProxy, bool isNeedToken)

Parameters

apiPath String

method String

parameters String

body String

timeoutInSeconds Int32

webProxy IWebProxy

isNeedToken Boolean

Returns

WebRequest

Dispose()

Disposes BaseClient class.

public void Dispose()