ILicenseTokenRepository
Namespace: Babel.Data Assembly: Babel.Data.dll
Interface for license token repository.
Implements
IGenericRepository<LicenseToken>
Methods
CountActiveTokensAsync(int)
Count all active license tokens.
Parameters
The license id
Returns
CountAsync(int, string, CancellationToken)
Asynchronously returns the number of license tokes in the repository for a given license.
Parameters
The ID of the license to count tokens for.
Specifies the string filter.
(Optional) A token that allows processing to be cancelled.
Returns
An asynchronous result that yields the number of elements in the repository.
Delete(IEnumerable<int>)
Deletes a list of license tokens with the given primary key values.
Parameters
The license token primary key ids to delete.
DeleteExpiredTokensAsync(int)
Delete all expired license tokens.
Parameters
The license id
Returns
QueryAsync(int, string, string, string, string, int?, int?, CancellationToken)
Asynchronously queries a list of LicenseToken objects for a given license from this repository.
Parameters
The ID of the license to retrieve tokens for.
(Optional) Specifies a select expression.
(Optional) Specifies the filter expression.
(Optional) Order by expression.
(Optional) A comma separated list of nested entity names to retrieve.
(Optional) The number of records to skip before the first record found.
(Optional) The number of records to take after the first record found.
(Optional) A token that allows processing to be cancelled.
Returns
A task that represents the asynchronous get operation, containing a list of LicenseToken objects.
Last updated