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 FluentEntitiesIteratorConstructors
FluentEntitiesIterator(IEntityIterator, IEntitiesClient, IEntityLoadConfiguration)
Initializes a new instance of the FluentEntitiesIterator class.
Declaration
RequestResponse
public FluentEntitiesIterator(IEntityIterator iterator, IEntitiesClient entitiesClient, IEntityLoadConfiguration entityLoadConfiguration)Parameters
| Type | Name | Description |
|---|---|---|
| IEntityIterator | iterator |
The IEntityIterator instance. |
| IEntitiesClient | entitiesClient |
The IEntitiesClient instance. |
| IEntityLoadConfiguration | entityLoadConfiguration |
Properties
Items
Gets the FluentEntity objects for the current iteration.
Declaration
RequestResponse
public List<FluentEntity> Items { get; }Property Value
| Type | Description |
|---|---|
| List<>FluentEntity |
Object
Gets the IEntityIterator.
Declaration
RequestResponse
public IEntityIterator Object { get; }Property Value
| Type | Description |
|---|---|
| IEntityIterator |
Methods
CanMoveNext()
Declaration
RequestResponse
public bool CanMoveNext()Returns
| Type | Description |
|---|---|
| bool |
CanMovePrevious()
Declaration
RequestResponse
public bool CanMovePrevious()Returns
| Type | Description |
|---|---|
| bool |
IterateAll(CancellationToken)
Iterates to the end and collects all IEntity results as FluentEntity.
Declaration
RequestResponse
public FluentEntitiesIterator IterateAll(CancellationToken cancellationToken = null)Parameters
| Type | Name | Description |
|---|---|---|
| CancellationToken | cancellationToken |
The cancellation token. |
Returns
| Type | Description |
|---|---|
| FluentEntitiesIterator |
MoveNextAsync()
Declaration
RequestResponse
public Task<bool> MoveNextAsync()Returns
| Type | Description |
|---|---|
| Task<>bool |
MovePreviousAsync()
Declaration
RequestResponse
public Task<bool> MovePreviousAsync()Returns
| Type | Description |
|---|---|
| Task<>bool |