Class EntityIterator
Version: 3.2
An iterator for iterating over IEntity query results.
Inherited Members
Namespace: StylelabsStylelabs.MSdkStylelabs.M.Sdk.ModelsQuerying
Assembly: Stylelabs.M.Sdk.dll
Syntax
RequestResponse
public class EntityIterator : LoadingQueryIteratorBase<IEntityQueryResult>, IEntityIterator, IQueryIterator<IEntityQueryResult>, IIteratorConstructors
EntityIterator(IMClient, Query, IEntityLoadConfiguration, IEntityQueryResult)
Initializes a new instance of the EntityIterator class.
Declaration
RequestResponse
public EntityIterator(IMClient client, Query query, IEntityLoadConfiguration loadConfiguration, IEntityQueryResult result)Parameters
| Type | Name | Description |
|---|---|---|
| IMClient | client |
The client. |
| Query | query |
The query. |
| IEntityLoadConfiguration | loadConfiguration |
The load configuration. |
| IEntityQueryResult | result |
The query result. |
EntityIterator(IMClient, Query, IEntityLoadConfiguration)
Initializes a new instance of the EntityIterator class.
Declaration
RequestResponse
public EntityIterator(IMClient client, Query query, IEntityLoadConfiguration loadConfiguration)Parameters
| Type | Name | Description |
|---|---|---|
| IMClient | client |
The client. |
| Query | query |
The query. |
| IEntityLoadConfiguration | loadConfiguration |
The load configuration. |
Methods
GetResultAsync(Query, IEntityLoadConfiguration)
Gets the results.
Declaration
RequestResponse
protected override Task<IEntityQueryResult> GetResultAsync(Query query, IEntityLoadConfiguration loadConfiguration)Parameters
| Type | Name | Description |
|---|---|---|
| Query | query |
The 'request' query. |
| IEntityLoadConfiguration | loadConfiguration |
The load configuration. |
Returns
| Type | Description |
|---|---|
| Task<>IEntityQueryResult |
The query results. |
Overrides
Stylelabs.M.Sdk.Models.Querying.LoadingQueryIteratorBase<Stylelabs.M.Sdk.Contracts.Querying.IEntityQueryResult>.GetResultAsync(Stylelabs.M.Base.Querying.Query, Stylelabs.M.Framework.Essentials.LoadConfigurations.IEntityLoadConfiguration)