1. Stylelabs.M.Sdk.Contracts.Querying

Interface IScrollEngine

Engine for scrolling.

Namespace: StylelabsStylelabs.MSdkStylelabs.M.Sdk.ContractsQuerying

Assembly: Stylelabs.M.Sdk.dll

Syntax

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

Type Parameters

NameDescription
TThe type of the scroll engine.

Methods

ContinueScrollAsync(string, TimeSpan, IQueryLoadConfiguration, long)

Continues scrolling though an existing scroll.

Declaration

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

Parameters

TypeNameDescription
stringscrollIdId of the scroll.
TimeSpanscrollTimeThe time to keep the scroll alive between requests.
IQueryLoadConfigurationloadConfigurationThe load configuration.
longoffsetThe current offset.

Returns

TypeDescription
Task<>The scroll result.

StartScrollAsync(Query, IQueryLoadConfiguration)

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

Declaration

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

Parameters

TypeNameDescription
QueryqueryThe query used for scrolling.
IQueryLoadConfigurationqueryLoadConfigurationThe load configuration.

Returns

TypeDescription
Task<>The scroll result.
If you have suggestions for improving this article, let us know!