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