AzureCosmosDbGetAllLogs Method

Retrieves all LogDto's in the database

Definition

Namespace: MobileTrack.DataContainers.Cosmos
Assembly: MobileTrack.DataContainers (in MobileTrack.DataContainers.dll) Version: 0.8+34f1bbd8dc6b32752cfce829cbed66e15113d7ba
public Task<GridResults<LogDto>> GetAllLogs(
	UserSessionData currentUser,
	ushort pageSize = 50,
	ushort skip = 0,
	bool orderByDesc = true,
	CancellationToken cancellationToken = default
)

Parameters

currentUser  UserSessionData
User performing the task
pageSize  UInt16  (Optional)
page size
skip  UInt16  (Optional)
Amount of entries to skip
orderByDesc  Boolean  (Optional)
Whether to order creation date in descending order
cancellationToken  CancellationToken  (Optional)
Cancellation token

Return Value

TaskGridResultsLogDto
All logs

Implements

IAzureCosmosDbGetAllLogs(UserSessionData, UInt16, UInt16, Boolean, CancellationToken)

Exceptions

UnauthorizedAccessException Thrown if the currentUser doesn't have the necessary ReviewLogs permission and/or isn't a MobileTrack support user.

See Also