コード例 #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="StreamingCombineViewPresenter"/> class.
        /// </summary>
        /// <param name="view">The view.</param>
        public StreamingCombineViewPresenter(IStreamingCombineView view)
        {
            _streamingCombineView = view;

            WebClient webClient = new WebClient();

            _chunkFileListParser = new ChunkFileListParser(webClient);
            _chunkDownloader     = new ChunkDownloader(webClient);
            _chunkFileCombiner   = new ChunkFileCombiner();
        }
コード例 #2
0
        public SFResultSet(QueryExecResponseData responseData, SFStatement sfStatement, CancellationToken cancellationToken) : base()
        {
            columnCount           = responseData.rowType.Count;
            _currentChunkRowIdx   = -1;
            _currentChunkRowCount = responseData.rowSet.GetLength(0);

            this.sfStatement = sfStatement;
            updateSessionStatus(responseData);

            if (responseData.chunks != null)
            {
                // counting the first chunk
                _totalChunkCount = responseData.chunks.Count;
                _chunkDownloader = ChunkDownloaderFactory.GetDownloader(responseData, this, cancellationToken);
            }

            _currentChunk       = new SFResultChunk(responseData.rowSet);
            responseData.rowSet = null;

            sfResultSetMetaData = new SFResultSetMetaData(responseData);

            isClosed = false;
        }