IResourceRepository
Namespace: Babel.Data Assembly: Babel.Data.dll
Interface for resource repository.
Implements
Methods
AddDownloadAsync(Download)
Adds a download asynchronous.
Parameters
Name | Description |
---|---|
| The download. |
Returns
Name | Description |
---|---|
An asynchronous result that yields the add download. |
Delete(IEnumerable<int>)
Deletes the given list of resources from the repository. Begins tracking the given list of resources in the Detached state such that it will be deleted in the database when SaveChanges() is called.
Parameters
Name | Description |
---|---|
| The Resource key identifiers to delete. |
DeleteDownloads(IEnumerable<int>)
Deletes the downloads described by downloadIds.
Parameters
Name | Description |
---|---|
| List of identifiers for the downloads. |
GetDownloadAsync(int)
Gets download asynchronous.
Parameters
Name | Description |
---|---|
| Identifier for the download. |
Returns
GetDownloadByAliasAsync(string)
Gets download by alias asynchronous.
Parameters
Name | Description |
---|---|
| The alias. |
Returns
GetDownloadsAsync()
Gets downloads asynchronous.
Returns
GetResourceType(Resource)
Gets resource type.
Parameters
Name | Description |
---|---|
| The resource. |
Returns
Name | Description |
---|---|
The resource type. |
GetSignatureKeysAsync(CancellationToken)
Gets signature keys asynchronous.
Parameters
Name | Description |
---|---|
| (Optional) A token that allows processing to be cancelled. |
Returns
TrackResourceAsync(Resource)
Track resource asynchronous.
Parameters
Name | Description |
---|---|
| The resource. |
Returns
Name | Description |
---|---|
An asynchronous result. |
UpdateDownload(Download)
Updates the download described by download.
Parameters
Name | Description |
---|---|
| The download. |
Last updated