[]
        
(Showing Draft Content)

C1.DataCollection.C1VirtualDataCollection-1.-ctor

C1VirtualDataCollection Constructor

C1VirtualDataCollection(int, int, TimeSpan?)

Initializes a new instance of the C1VirtualDataCollection<T> class.

Declaration
public C1VirtualDataCollection(int maxParallelRequests = 4, int maxActiveRequests = 4, TimeSpan? requestDelay = null)
Parameters
Type Name Description
int maxParallelRequests

The maximum number of pages that will be requested concurrently. If 1 is specified, the pages will be fetched one after the other. Avoid setting a big number to prevent saturating the server with too many requests.

int maxActiveRequests

The maximum number of pages that will be executing, or waiting. When this number is surpassed the oldest requested pages will be cancelled. The value of this parameter must be greater than maxParallelRequests.

TimeSpan? requestDelay

The delay before requesting a page. When this parameter is greater than zero, it helps avoid bursts of page requests, typically caused by scrolling down operations.