logo
logo

Class FluentEntitiesIterator

Provides access to the entity iterator in a fluent way.

Inheritance
System.Object
FluentEntitiesIterator
Namespace: Stylelabs.M.Sdk.Fluent.Wrappers
Assembly: Stylelabs.M.Sdk.Fluent.dll
Syntax
public class FluentEntitiesIterator : object

Constructors

FluentEntitiesIterator(IEntityIterator, IEntitiesClient, IEntityLoadConfiguration)

Initializes a new instance of the FluentEntitiesIterator class.

Declaration
public FluentEntitiesIterator(IEntityIterator iterator, IEntitiesClient entitiesClient, IEntityLoadConfiguration entityLoadConfiguration)
Parameters
Type Name Description
IEntityIterator iterator

The IEntityIterator instance.

IEntitiesClient entitiesClient

The IEntitiesClient instance.

IEntityLoadConfiguration entityLoadConfiguration

The IEntityLoadConfiguration.

Properties

Items

Contains the FluentEntity objects for the current iteration.

Declaration
public List<FluentEntity> Items { get; }
Property Value
Type Description
List<FluentEntity>

Object

Gets the IEntityIterator.

Declaration
public IEntityIterator Object { get; }
Property Value
Type Description
IEntityIterator

Methods

CanMoveNext()

Declaration
public bool CanMoveNext()
Returns
Type Description
System.Boolean

CanMovePrevious()

Declaration
public bool CanMovePrevious()
Returns
Type Description
System.Boolean

IterateAll(CancellationToken)

Iterates to the end and collects all IEntity results as FluentEntity.

Declaration
public FluentEntitiesIterator IterateAll(CancellationToken cancellationToken = null)
Parameters
Type Name Description
CancellationToken cancellationToken
Returns
Type Description
FluentEntitiesIterator

MoveNextAsync()

Declaration
public Task<bool> MoveNextAsync()
Returns
Type Description
Task<System.Boolean>

MovePreviousAsync()

Declaration
public Task<bool> MovePreviousAsync()
Returns
Type Description
Task<System.Boolean>

Can we improve this article ? Provide feedback