private void Reload() { if (this.Validate()) { TilesDownloader.EnqueueDownload(this, false); } }
internal void StartDownload() { if (this.stream != null) { this.memoryStream = new MemoryStream(); this.stream.BeginRead(this.tileBodyPart, 0, TileBodyPartLength, ReadTileCallback, this); } else { TilesDownloader.EnqueueDownload(this, true); } }
public void Dispose() { lock (this.synchronizer) { TilesDownloader.RemoveDownloader(this); if (this.webClient != null) { this.webClient.Dispose(); this.webClient = null; } this.tileBody = null; this.tileBodyPart = null; } }