Class HttpTileFetcher
public sealed class HttpTileFetcher : ITileFetcher, IDisposable
- Inheritance
-
objectHttpTileFetcher
- Implements
Constructors
HttpTileFetcher(int, string)
public HttpTileFetcher(int slotCount, string userAgent)
Parameters
Fields
RequestTimeout
public static readonly TimeSpan RequestTimeout
Field Value
Properties
SlotCount
public int SlotCount { get; }
Property Value
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
slotint
Returns
LastError(int)
public TileFetchError LastError(int slot)
Parameters
slotint
Returns
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
Returns
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
Returns
Release(int)
public void Release(int slot)
Parameters
slotint
Start(int, TileCoord, string)
public void Start(int slot, TileCoord tile, string url)