Interface IMetadataRepository
Provides an abstraction of the MetadataRepository to allow testing and mocking. Use the MetadataRepository (the default implementation) in functional code to implement this interface's functionality.
Namespace: Unity.Cloud.Metadata
Assembly: solution.dll
Syntax
public interface IMetadataRepository
Methods
GetAllKeysAsync()
Gets a list of all the possible root keys in the objects contained in the dataset.
Declaration
Task<IEnumerable<string>> GetAllKeysAsync()
Returns
| Type | Description |
|---|---|
| Task<IEnumerable<string>> | The list of possible root keys in the dataset's metadata. |
GetMetadataAsync(GetMetadataParameters, CancellationToken)
Gets a list of Match in the dataset from a list of owners ID.
Declaration
Task<MatchCollection> GetMetadataAsync(GetMetadataParameters parameters, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| GetMetadataParameters | parameters | The parameters containing the filter's conditions to extract only records that fulfill them. |
| CancellationToken | cancellationToken | A cancellation token |
Returns
| Type | Description |
|---|---|
| Task<MatchCollection> | The list of Match. |