Class FluentEntitiesIterator

Provides access to the entity iterator in a fluent way.

Inheritance
object
FluentEntitiesIterator
Namespace: StylelabsStylelabs.MSdkFluentWrappers
Assembly: Stylelabs.M.Sdk.Fluent.dll
Syntax
RequestResponse
public class FluentEntitiesIterator

Constructors

FluentEntitiesIterator(IEntityIterator, IEntitiesClient, IEntityLoadConfiguration)

Initializes a new instance of the FluentEntitiesIterator class.

Declaration
RequestResponse
public FluentEntitiesIterator(IEntityIterator iterator, IEntitiesClient entitiesClient, IEntityLoadConfiguration entityLoadConfiguration)
Parameters
TypeNameDescription
IEntityIteratoriterator

The IEntityIterator instance.

IEntitiesCliententitiesClient

The IEntitiesClient instance.

IEntityLoadConfigurationentityLoadConfiguration

The IEntityLoadConfiguration.

Properties

Items

Gets the FluentEntity objects for the current iteration.

Declaration
RequestResponse
public List<FluentEntity> Items { get; }
Property Value
TypeDescription
List<>FluentEntity

Object

Gets the IEntityIterator.

Declaration
RequestResponse
public IEntityIterator Object { get; }
Property Value
TypeDescription
IEntityIterator

Methods

CanMoveNext()

Declaration
RequestResponse
public bool CanMoveNext()
Returns
TypeDescription
bool

CanMovePrevious()

Declaration
RequestResponse
public bool CanMovePrevious()
Returns
TypeDescription
bool

IterateAll(CancellationToken)

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

Declaration
RequestResponse
public FluentEntitiesIterator IterateAll(CancellationToken cancellationToken = null)
Parameters
TypeNameDescription
CancellationTokencancellationToken

The cancellation token.

Returns

MoveNextAsync()

Declaration
RequestResponse
public Task<bool> MoveNextAsync()
Returns
TypeDescription
Task<>bool

MovePreviousAsync()

Declaration
RequestResponse
public Task<bool> MovePreviousAsync()
Returns
TypeDescription
Task<>bool

Do you have some feedback for us?

If you have suggestions for improving this article,