コード例 #1
0
        private ChunkResponse TestChunk(SmoothStreamChunk chunk)
        {
            ChunkRetriever cr = new ChunkRetriever();
            var response = cr.DownloadChunkStatsOnly(chunk);

            _responses[chunk] = response;

            if (ChunkTested != null)
            {
                try
                {
                    this.ChunkTested(this, chunk, response);
                }
                catch (Exception ex)
                {
                    Log("Exception raising chunk tested event: " + ex.Message, false);
                }
            }

            return response;
        }