IAzureCosmosDbGetLogsOfItemT Method

Retrieves all the logs of an item (unsorted)

Definition

Namespace: MobileTrack.DataContainers.Cosmos
Assembly: MobileTrack.DataContainers (in MobileTrack.DataContainers.dll) Version: 0.7+1dadc87dcf0a0f837e19a3ce2deb7c1cd85375d1
Task<GridResults<LogDto>> GetLogsOfItem<T>(
	UserSessionData currentUser,
	T item,
	bool includeMobileTrackSupport,
	IReadOnlyList<FilterItem> filters,
	IReadOnlyList<SortingItem> sorting,
	ushort pageSize = 50,
	ushort skip = 0,
	CancellationToken cancellationToken = default
)
where T : IIdLabel, IHasCompany

Parameters

currentUser  UserSessionData
User performing the task
item  T
Item we want the logs of.
includeMobileTrackSupport  Boolean
Include logs of what MobileTrack support did to the item
filters  IReadOnlyListFilterItem
Applied filters (if any)
sorting  IReadOnlyListSortingItem
Sorting sequence
pageSize  UInt16  (Optional)
page size
skip  UInt16  (Optional)
Amount of entries to skip
cancellationToken  CancellationToken  (Optional)
Cancellation token

Type Parameters

T
Object type item is based on.

Return Value

TaskGridResultsLogDto
All logs of item item

Exceptions

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

See Also