Table of Contents

Class CloudMapClient

Namespace
ThinkGeo.Core
Assembly
ThinkGeo.Core.dll
[Obsolete("This class is deprecated and will be removed after v13.3. Please use ThinkGeo Cloud Layers to display ThinkGeo Maps.")]
public class CloudMapClient
Inheritance
CloudMapClient
Inherited Members

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 clientId or clientSecret is null.

Properties

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

IsOpen

public bool IsOpen { get; set; }

Property Value

bool

TimeoutInSeconds

The request timeout, default 100 seconds

public int TimeoutInSeconds { get; set; }

Property Value

int

Uris

public Collection<Uri> Uris { get; }

Property Value

Collection<Uri>

WebProxy

The proxy used for requesting a Web Response.

public IWebProxy WebProxy { get; set; }

Property Value

IWebProxy

Methods

CreateWebRequest(string, string, string, string, int, IWebProxy, bool)

public WebRequest CreateWebRequest(string apiPath, string method = "GET", string parameters = null, string body = null, int timeoutInSeconds = -1, IWebProxy webProxy = null, bool isNeedToken = true)

Parameters

apiPath string
method string
parameters string
body string
timeoutInSeconds int
webProxy IWebProxy
isNeedToken bool

Returns

WebRequest

Dispose()

Disposes BaseClient class.

public virtual void Dispose()

Open()

public void Open()