Table of Contents

Class HttpTileFetcher

Namespace
LansMap.Map.Network
public sealed class HttpTileFetcher : ITileFetcher, IDisposable
Inheritance
object
HttpTileFetcher
Implements

Constructors

HttpTileFetcher(int, string)

public HttpTileFetcher(int slotCount, string userAgent)

Parameters

slotCount int
userAgent string

Fields

RequestTimeout

public static readonly TimeSpan RequestTimeout

Field Value

TimeSpan

Properties

SlotCount

public int SlotCount { get; }

Property Value

int

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

IsFree(int)

public bool IsFree(int slot)

Parameters

slot int

Returns

bool

LastError(int)

public TileFetchError LastError(int slot)

Parameters

slot int

Returns

TileFetchError

Poll(int, out TileCoord, out float, out byte[], out int)

public FetchStatus Poll(int slot, out TileCoord tile, out float progress, out byte[] bytes, out int length)

Parameters

slot int
tile TileCoord
progress float
bytes byte[]
length int

Returns

FetchStatus

Poll(int, out TileCoord, out float, out byte[], out int, out bool)

public FetchStatus Poll(int slot, out TileCoord tile, out float progress, out byte[] bytes, out int length, out bool pooled)

Parameters

slot int
tile TileCoord
progress float
bytes byte[]
length int
pooled bool

Returns

FetchStatus

Release(int)

public void Release(int slot)

Parameters

slot int

Start(int, TileCoord, string)

public void Start(int slot, TileCoord tile, string url)

Parameters

slot int
tile TileCoord
url string