Beispiel #1
0
 private void Reload()
 {
     if (this.Validate())
     {
         TilesDownloader.EnqueueDownload(this, false);
     }
 }
Beispiel #2
0
 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);
     }
 }
Beispiel #3
0
        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;
            }
        }