IAzureCosmosDbGetLogsOfCompany Method

Retrieves all LogDto's belonging to companyId.

Definition

Namespace: MobileTrack.DataContainers.Cosmos
Assembly: MobileTrack.DataContainers (in MobileTrack.DataContainers.dll) Version: 0.7+1dadc87dcf0a0f837e19a3ce2deb7c1cd85375d1
Task<GridResults<LogDto>> GetLogsOfCompany(
	Guid companyId,
	UserSessionData currentUser,
	ushort pageSize = 50,
	ushort skip = 0,
	bool orderByDesc = true,
	CancellationToken cancellationToken = default
)

Parameters

companyId  Guid
company to look up
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 belonging to CompanyDtocompanyId.

Exceptions

UnauthorizedAccessException Thrown if the currentUser doesn't have the necessary ReviewLogs permission.

See Also