DefaultSpecification<TItem>
A specification used for getting all results in a `QueryResult`
Namespace: Microsoft.Azure.CosmosRepository.Specification
Kind: class
A specification used for getting all results in a QueryResult
public class DefaultSpecification<TItem> : BaseSpecification<TItem, IQueryResult<TItem>>, ISpecification<TItem, IQueryResult<TItem>> where TItem : IItemType parameters
| Name | Description |
|---|---|
TItem | The type of IItem being queried. |
Example
Members
Method
DefaultSpecification<TItem>.PostProcessingAction(IReadOnlyList<TItem>, int, double, string?)
Processing for updating the query result before returning it from the repository. Given the methods input it should generate the specified TResult />
public override IQueryResult<TItem> PostProcessingAction(IReadOnlyList<TItem> queryResult, int totalCount, double charge, string? continuationToken)Parameters
| Name | Type | Description |
|---|---|---|
queryResult | IReadOnlyList{{TItem}} | — |
totalCount | Int32 | — |
charge | Double | — |
continuationToken | String | — |
Returns — IQueryResult{{TItem}}