Class FeedRange
Represents a unit of feed consumption that can be used as unit of parallelism.
public abstract class FeedRange
- Inheritance
-
FeedRange
- Inherited Members
- Extension Methods
Constructors
FeedRange()
protected FeedRange()
Methods
FromJsonString(string)
Creates a range from a previously obtained string representation.
public static FeedRange FromJsonString(string toStringValue)
Parameters
toStringValue
stringA string representation obtained from ToJsonString().
Returns
Exceptions
- ArgumentException
If the
toStringValue
does not represent a valid value.
FromPartitionKey(PartitionKey)
Creates a feed range that span only a single PartitionKey value.
public static FeedRange FromPartitionKey(PartitionKey partitionKey)
Parameters
partitionKey
PartitionKeyThe partition key value to create a feed range from.
Returns
- FeedRange
The feed range that spans the partition.
ToJsonString()
Gets a string representation of the current range.
public abstract string ToJsonString()
Returns
- string
A string representation of the current token.