Class CollectionQueryBuilder
A class that builds and executes a query to return a set of collections.
Inherited Members
Namespace: Unity.Cloud.Assets
Assembly: Unity.Cloud.Assets.dll
Syntax
public class CollectionQueryBuilder
Methods
ExecuteAsync(CancellationToken)
Executes the query and returns the results.
Declaration
public IAsyncEnumerable<IAssetCollection> ExecuteAsync(CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
CancellationToken | cancellationToken | A token that can be used to cancel the request. |
Returns
Type | Description |
---|---|
IAsyncEnumerable<IAssetCollection> | An async enumeration of IAssetCollection. |
LimitTo(Range)
Sets the range of results to return.
Declaration
public CollectionQueryBuilder LimitTo(Range range)
Parameters
Type | Name | Description |
---|---|---|
Range | range | The range of results to return. |
Returns
Type | Description |
---|---|
CollectionQueryBuilder | The calling CollectionQueryBuilder. |
WithCacheConfiguration(AssetCollectionCacheConfiguration)
Sets an override to the default cache configuration for the query.
Declaration
public CollectionQueryBuilder WithCacheConfiguration(AssetCollectionCacheConfiguration assetCollectionCacheConfiguration)
Parameters
Type | Name | Description |
---|---|---|
AssetCollectionCacheConfiguration | assetCollectionCacheConfiguration | The configuration to apply when populating the collections. |
Returns
Type | Description |
---|---|
CollectionQueryBuilder | The calling CollectionQueryBuilder. |