private void BulkAll(IObserver <IBulkAllResponse> observer)
        {
            var documents = this._partionedBulkRequest.Documents;
            var partioned = new PartitionHelper <T>(documents, this._bulkSize, this._maxDegreeOfParallelism);

            partioned.ForEachAsync(
                (buffer, page) => this.BulkAsync(buffer, page, 0),
                (buffer, response) => observer.OnNext(response),
                t => OnCompleted(t, observer)
                );
        }
        private void BulkAll(IObserver <IBulkAllResponse> observer)
        {
            var documents = this._partionedBulkRequest.Documents;
            var partioned = new PartitionHelper <T>(documents, this._bulkSize);

#pragma warning disable 4014
            partioned.ForEachAsync(
#pragma warning restore 4014
                (buffer, page) => this.BulkAsync(buffer, page, 0),
                (buffer, response) => observer.OnNext(response),
                ex => OnCompleted(ex, observer),
                this._maxDegreeOfParallelism
                );
        }