Table of Contents

Method GetAvailable

Namespace
MVVrus.AspNetCore.ActiveSession
Assembly
MVVrus.AspNetCore.ActiveSession.dll

GetAvailable(int, int, string?)

Returns a result of the runner available at the moment of the method call. This is a part of IRunner<IEnumerable<TItem>> implementation.

public RunnerResult<IEnumerable<TItem>> GetAvailable(int Advance = 2147483647, int StartPosition = -1, string? TraceIdentifier = null)

Parameters

Advance int

Maximum number of items in the sequience returned in result's Result field. The default value of the parameter means that all already fetched items should be returned.

StartPosition int

Position value from which a fetch of the result should begin. Must be equal to the current runner's Position or a constant CURRENT_POSITION

TraceIdentifier string
String that can be used for tracing.

Returns

RunnerResult<IEnumerable<TItem>>
Fields in the structure returned as a result contains values of the properties Status and Position at the point of completion in fields with the same names and a runner-specific result in a Result field, the Result field of the returned structure contains sequence of items (of type TItem) already fetched in background, that have not been returned yet by previous GetAvailable and GetRequiredAsync calls - all or a part of them according to the Advance value.