CosmosExtensionsLoadEntireStackT Method

Reads an entire stack of an Azure Cosmos Container, only filtered by the partitionKey if it isn't left empty.

Definition

Namespace: MobileTrack.DataContainers.Extensions
Assembly: MobileTrack.DataContainers (in MobileTrack.DataContainers.dll) Version: 0.8+34f1bbd8dc6b32752cfce829cbed66e15113d7ba
internal static Task<List<T>> LoadEntireStack<T>(
	this ItemBaseRepository<T> repository,
	PartitionKey? partitionKey = null,
	CancellationToken cancellationToken = default
)
where T : IIdLabel

Parameters

repository  ItemBaseRepositoryT
Repository to load from
partitionKey  NullablePartitionKey  (Optional)
Partition in the Azure Cosmos Database to load from (optional)
cancellationToken  CancellationToken  (Optional)
Cancellation token

Type Parameters

T
Business object to load

Return Value

TaskListT
Item stack from the container, filtered by the partitionKey (if not left empty). If nothing was found, an empty ListT will be returned.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ItemBaseRepositoryT. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also