Class DatasetExtensions
Extension methods for IDataset.
Inherited Members
Namespace: Unity.Cloud.Assets
Assembly: Unity.Cloud.Assets.dll
Syntax
public static class DatasetExtensions
Methods
ListUpdateHistoriesAsync(IDataset, Range, CancellationToken)
Returns the update histories of the dataset.
Declaration
public static IAsyncEnumerable<DatasetUpdateHistory> ListUpdateHistoriesAsync(this IDataset dataset, Range range, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| IDataset | dataset | The dataset to query. |
| Range | range | The range of results to return. |
| CancellationToken | cancellationToken | A token that can be used to cancel the request. |
Returns
| Type | Description |
|---|---|
| IAsyncEnumerable<DatasetUpdateHistory> | An async enumeration of DatasetUpdateHistory in descending order of SequenceNumber. |
UpdateAsync(IDataset, DatasetUpdateHistory, CancellationToken)
Updates the dataset to its state at the specified update history sequence number.
Declaration
public static Task UpdateAsync(this IDataset dataset, DatasetUpdateHistory datasetUpdateHistory, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| IDataset | dataset | The dataset to query. |
| DatasetUpdateHistory | datasetUpdateHistory | The update history entry to which the dataset should be updated. |
| CancellationToken | cancellationToken | A token that can be used to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task | A task with no result. |
UpdateAsync(IDataset, DatasetUpdateHistoryDescriptor, CancellationToken)
Updates the dataset to its state at the specified update history sequence number.
Declaration
public static Task UpdateAsync(this IDataset dataset, DatasetUpdateHistoryDescriptor datasetUpdateHistoryDescriptor, CancellationToken cancellationToken)
Parameters
| Type | Name | Description |
|---|---|---|
| IDataset | dataset | The dataset to query. |
| DatasetUpdateHistoryDescriptor | datasetUpdateHistoryDescriptor | The update history descriptor to which the dataset should be updated. |
| CancellationToken | cancellationToken | A token that can be used to cancel the request. |
Returns
| Type | Description |
|---|---|
| Task | A task with no result. |