Class LabelQueryBuilder
A class that builds and executes a query to return a set of labels.
Inherited Members
Namespace: Unity.Cloud.Assets
Assembly: Unity.Cloud.Assets.dll
Syntax
public sealed class LabelQueryBuilder
Methods
ExecuteAsync(CancellationToken)
Executes the query and returns the labels that satisfy the criteria.
Declaration
public IAsyncEnumerable<ILabel> ExecuteAsync(CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
CancellationToken | cancellationToken | A token that can be used to cancel the request. |
Returns
Type | Description |
---|---|
IAsyncEnumerable<ILabel> | An async enumeration of ILabel. |
LimitTo(Range)
Sets the range of results to return.
Declaration
public LabelQueryBuilder LimitTo(Range range)
Parameters
Type | Name | Description |
---|---|---|
Range | range | The range of results. |
Returns
Type | Description |
---|---|
LabelQueryBuilder | The calling LabelQueryBuilder. |
SelectWhereMatchesFilter(LabelSearchFilter)
Sets the filter to be used when querying labels.
Declaration
public LabelQueryBuilder SelectWhereMatchesFilter(LabelSearchFilter filter)
Parameters
Type | Name | Description |
---|---|---|
LabelSearchFilter | filter | The query filter. |
Returns
Type | Description |
---|---|
LabelQueryBuilder | The calling LabelQueryBuilder. |
WithCacheConfiguration(LabelCacheConfiguration)
Sets an override to the default cache configuration for the query.
Declaration
public LabelQueryBuilder WithCacheConfiguration(LabelCacheConfiguration labelCacheConfiguration)
Parameters
Type | Name | Description |
---|---|---|
LabelCacheConfiguration | labelCacheConfiguration | The configuration to apply when populating the labels. |
Returns
Type | Description |
---|---|
LabelQueryBuilder | The calling AssetProjectQueryBuilder. |