Class ProjectExtensions
Inherited Members
Namespace: Unity.Cloud.Assets
Assembly: Unity.Cloud.Assets.dll
Syntax
public static class ProjectExtensions
Methods
CountAssetsAsync(IAssetProject, IAssetSearchFilter, CancellationToken)
Returns the total count of assets in the specified projects based on the provided criteria.
Declaration
public static Task<int> CountAssetsAsync(this IAssetProject assetProject, IAssetSearchFilter assetSearchFilter, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
IAssetProject | assetProject | The IAssetProject. |
IAssetSearchFilter | assetSearchFilter | The filter specifying the search criteria. Can be null. |
CancellationToken | cancellationToken | A token that can be used to cancel the request. |
Returns
Type | Description |
---|---|
Task<int> | A task whose result is an asset count. |
ListCollectionsAsync(IAssetProject, Range, CancellationToken)
Returns the collections of the project.
Declaration
public static IAsyncEnumerable<IAssetCollection> ListCollectionsAsync(this IAssetProject assetProject, Range range, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
IAssetProject | assetProject | The IAssetProject. |
Range | range | The range of results to return. |
CancellationToken | cancellationToken | A token that can be used to cancel the request. |
Returns
Type | Description |
---|---|
IAsyncEnumerable<IAssetCollection> |