Ejemplo n.º 1
0
 internal PageableResult(
     CanvasApiClient apiClient,
     PageLinks pageLinks
     )
 {
     this._initalPageLinks = pageLinks ?? throw new ArgumentNullException(nameof(pageLinks), "Paging details not supplied.");
     this._ApiClient       = apiClient;
 }
Ejemplo n.º 2
0
 internal PageableResult(
     IEnumerable <TResult> initialBuffer,
     CanvasApiClient apiClient,
     PageLinks pageLinks
     ) : this(apiClient, pageLinks)
 {
     this.InitialBuffer = initialBuffer?.ToArray() ?? Array.Empty <TResult>();
 }