IResourceRepository
Namespace: Babel.Data Assembly: Babel.Data.dll
Interface for resource repository.
Implements
Methods
AddDownloadAsync(Download)
Adds a download asynchronous.
Parameters
The download.
Returns
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
The Resource key identifiers to delete.
DeleteDownloads(IEnumerable<int>)
Deletes the downloads described by downloadIds.
Parameters
List of identifiers for the downloads.
GetDownloadAsync(int)
Gets download asynchronous.
Parameters
Identifier for the download.
Returns
An asynchronous result that yields the download.
GetDownloadByAliasAsync(string)
Gets download by alias asynchronous.
Parameters
The alias.
Returns
An asynchronous result that yields the download by alias.
GetDownloadsAsync()
Gets downloads asynchronous.
Returns
An asynchronous result that yields the downloads.
GetResourceType(Resource)
Gets resource type.
Parameters
The resource.
Returns
The resource type.
GetSignatureKeysAsync(CancellationToken)
Gets signature keys asynchronous.
Parameters
(Optional) A token that allows processing to be cancelled.
Returns
An asynchronous result that yields the signature keys.
TrackResourceAsync(Resource)
Track resource asynchronous.
Parameters
The resource.
Returns
An asynchronous result.
UpdateDownload(Download)
Updates the download described by download.
Parameters
The download.
Last updated