Class MetadataRepositoryExtensions
Inherited Members
Namespace: Unity.Cloud.Metadata
Assembly: solution.dll
Syntax
public static class MetadataRepositoryExtensions
Methods
GetAllIdsAsync(IMetadataRepository, CancellationToken)
Gets all owner IDs in the dataset.
Declaration
public static Task<IEnumerable<InstanceId>> GetAllIdsAsync(this IMetadataRepository metadataRepository, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| IMetadataRepository | metadataRepository | The metadata repository. |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task<IEnumerable<InstanceId>> | The list of ids |
GetAllMetadataAsync(IMetadataRepository, CancellationToken)
Gets all metadata from all owners in the dataset.
Declaration
public static Task<MatchCollection> GetAllMetadataAsync(this IMetadataRepository metadataRepository, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| IMetadataRepository | metadataRepository | The metadata repository. |
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task<MatchCollection> | The list of Match. |
Query(IMetadataRepository)
Gets a MetadataQueryBuilder to build fluent queries.
Declaration
public static MetadataQueryBuilder Query(this IMetadataRepository metadataRepository)
Parameters
| Type | Name | Description |
|---|---|---|
| IMetadataRepository | metadataRepository |
Returns
| Type | Description |
|---|---|
| MetadataQueryBuilder | A new MetadataQueryBuilder |