CosmosExtensionsReadSingleDataItemFromFeedT Method

Retrieves a single item from the feed (useful for 'Get single item' methods)

Definition

Namespace: MobileTrack.DataContainers.Extensions
Assembly: MobileTrack.DataContainers (in MobileTrack.DataContainers.dll) Version: 0.8+34f1bbd8dc6b32752cfce829cbed66e15113d7ba
internal static Task<T> ReadSingleDataItemFromFeed<T>(
	this FeedIterator<T> feed,
	CancellationToken cancellationToken
)

Parameters

feed  FeedIteratorT
The FeedIterator created from the Container to execute.
cancellationToken  CancellationToken
Cancellation token

Type Parameters

T
Object to retrieve from the feed

Return Value

TaskT
Found value in the feed or default of T if nothing was found.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type FeedIteratorT. 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