Table of Contents

Class BulkQuery

Namespace
GuildWars2
Assembly
GW2SDK.dll

Provides a method to retrieve bulk data from the Guild Wars 2 API.

public static class BulkQuery
Inheritance
BulkQuery
Inherited Members

Fields

DefaultChunkSize

The default chunk size is 200. This is the maximum number of keys that can be retrieved in a single query.

DefaultDegreeOfParallelism

The default degree of parallelism is 20. This is the maximum number of concurrent queries that will be executed in a bulk.

Methods

QueryAsync<TKey, TValue>(IEnumerable<TKey>, BulkRequest<TKey, TValue>, int, int, IProgress<BulkProgress>?, CancellationToken)

Retrieves bulk data from the Guild Wars 2 API.
Given a large collection of keys, this method will the collection into smaller chunks and query the API for each chunk. The chunk size can optionally be specified, otherwise the maximum chunk size (200) is used.
Chunks are queried in parallel by default. The results are streamed as they become available, ordered by completion. The degree of parallelism can optionally be specified (default: 20). You can optionally specify a progress object to receive progress updates.