---
title: "Interface IScrollEngine<T>"
slug: "sdk--stylelabs.m.sdk.contracts.querying.iscrollengine-1"
abstract: ""
---
# Interface IScrollEngine<T>

Engine for scrolling.

## Namespace: StylelabsStylelabs.MSdkStylelabs.M.Sdk.ContractsQuerying

## Assembly: Stylelabs.M.Sdk.dll

## Syntax

```csharp
public interface IScrollEngine<T> where T : class, IScrollResult
```

## Type Parameters

| Name | Description |
| --- | --- |
| T | The type of the scroll engine. |

## Methods

### ContinueScrollAsync(string, TimeSpan, IQueryLoadConfiguration, long)

Continues scrolling though an existing scroll.

#### Declaration

```csharp
Task<T> ContinueScrollAsync(string scrollId, TimeSpan scrollTime, IQueryLoadConfiguration loadConfiguration, long offset)
```

#### Parameters

| Type | Name | Description |
| --- | --- | --- |
| string | scrollId | Id of the scroll. |
| TimeSpan | scrollTime | The time to keep the scroll alive between requests. |
| [IQueryLoadConfiguration](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.framework.essentials.loadconfigurations.iqueryloadconfiguration.html) | loadConfiguration | The load configuration. |
| long | offset | The current offset. |

#### Returns

| Type | Description |
| --- | --- |
| Task<> | The scroll result. |

### StartScrollAsync(Query, IQueryLoadConfiguration)

Does the initial setup of the scroll and returns the first batch.

#### Declaration

```csharp
Task<T> StartScrollAsync(Query query, IQueryLoadConfiguration queryLoadConfiguration)
```

#### Parameters

| Type | Name | Description |
| --- | --- | --- |
| [Query](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.base.querying.query.html) | query | The query used for scrolling. |
| [IQueryLoadConfiguration](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.framework.essentials.loadconfigurations.iqueryloadconfiguration.html) | queryLoadConfiguration | The load configuration. |

#### Returns

| Type | Description |
| --- | --- |
| Task<> | The scroll result. |
