Ejemplo n.º 1
0
 void download_SegmentFailed(object sender, SegmentEventArgs e)
 {
     Log(
         e.Downloader,
         String.Format(
         "Download segment ({0}) failed for {2}, reason = {1}",
         e.Segment.Index,
         e.Segment.LastError.Message,
         e.Downloader.ResourceLocation.URL),
         LogMode.Error);
 }
Ejemplo n.º 2
0
 void download_RestartingSegment(object sender, SegmentEventArgs e)
 {
     Log(
         e.Downloader,
         String.Format(
         "Download segment ({0}) is restarting for {1}",
         e.Segment.Index,
         e.Downloader.ResourceLocation.URL),
         LogMode.Information);
 }
Ejemplo n.º 3
0
 void download_SegmentStarted(object sender, SegmentEventArgs e)
 {
     Log(
         e.Downloader,
         String.Format(
         "Started segment for {3}, start position = {0}, end position {1}, segment size = {2}",
         ByteFormatter.ToString(e.Segment.InitialStartPosition),
         ByteFormatter.ToString(e.Segment.EndPosition),
         ByteFormatter.ToString(e.Segment.TotalToTransfer),
         e.Downloader.ResourceLocation.URL),
         LogMode.Information);
 }