public static CosmosElement ToCosmosElement(ChangeFeedContinuationToken changeFeedContinuationToken) { return(CosmosObject.Create(new Dictionary <string, CosmosElement>() { { PropertyNames.FeedRange, FeedRangeCosmosElementSerializer.ToCosmosElement(changeFeedContinuationToken.Range) }, { PropertyNames.State, ChangeFeedStateCosmosElementSerializer.ToCosmosElement(changeFeedContinuationToken.State) } })); }
public static CosmosElement ToCosmosElement(FeedRangeState <ChangeFeedState> feedRangeState) { return(CosmosObject.Create(new Dictionary <string, CosmosElement>() { { PropertyNames.FeedRange, FeedRangeCosmosElementSerializer.ToCosmosElement(feedRangeState.FeedRange) }, { PropertyNames.State, ChangeFeedStateCosmosElementSerializer.ToCosmosElement(feedRangeState.State) } })); }