IAzureCosmosDbGetLogsOfItemT Method

Retrieves all the logs of an item (unsorted)

Definition

Namespace: MobileTrack.DataContainers.Cosmos
Assembly: MobileTrack.DataContainers (in MobileTrack.DataContainers.dll) Version: 0.8+34f1bbd8dc6b32752cfce829cbed66e15113d7ba
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