Table of Contents

Class WebBasedLayer

Namespace
ThinkGeo.Core.Async
Assembly
ThinkGeo.Core.dll
public abstract class WebBasedLayer : LayerAsync
Inheritance
WebBasedLayer
Derived
Inherited Members

Constructors

WebBasedLayer()

protected WebBasedLayer()

Properties

Credentials

This property gets or sets the base authentication interface for retrieving credentials for Web Client authentication.

public ICredentials Credentials { get; set; }

Property Value

ICredentials

HttpClient

protected HttpClient HttpClient { get; set; }

Property Value

HttpClient

TimeoutInSeconds

public int TimeoutInSeconds { get; set; }

Property Value

int

WebProxy

public IWebProxy WebProxy { get; set; }

Property Value

IWebProxy

Methods

FetchImageAsync(string, CancellationToken)

protected Task<GeoImage> FetchImageAsync(string requestString, CancellationToken cancellationToken)

Parameters

requestString string
cancellationToken CancellationToken

Returns

Task<GeoImage>

FetchImageAsyncCore(string, CancellationToken)

protected Task<GeoImage> FetchImageAsyncCore(string requestString, CancellationToken cancellationToken)

Parameters

requestString string
cancellationToken CancellationToken

Returns

Task<GeoImage>

OnReceivedHttpResponseMessage(ReceivedHttpResponseMessageEventArgs)

protected virtual void OnReceivedHttpResponseMessage(ReceivedHttpResponseMessageEventArgs e)

Parameters

e ReceivedHttpResponseMessageEventArgs

OnSendingHttpRequestMessage(SendingHttpRequestMessageEventArgs)

protected virtual void OnSendingHttpRequestMessage(SendingHttpRequestMessageEventArgs e)

Parameters

e SendingHttpRequestMessageEventArgs

OpenAsyncCore(CancellationToken)

protected override Task OpenAsyncCore(CancellationToken cancellationToken)

Parameters

cancellationToken CancellationToken

Returns

Task

Events

ReceivedHttpResponse

public event EventHandler<ReceivedHttpResponseMessageEventArgs> ReceivedHttpResponse

Event Type

EventHandler<ReceivedHttpResponseMessageEventArgs>

SendingHttpRequest

public event EventHandler<SendingHttpRequestMessageEventArgs> SendingHttpRequest

Event Type

EventHandler<SendingHttpRequestMessageEventArgs>