public static AggregateValue Create(AggregateOperator?aggregateOperator) { AggregateValue value; if (aggregateOperator.HasValue) { value = AggregateAggregateValue.Create(aggregateOperator.Value); } else { value = ScalarAggregateValue.Create(); } return(value); }
public static TryCatch <AggregateValue> TryCreate(AggregateOperator?aggregateOperator, CosmosElement continuationToken) { TryCatch <AggregateValue> value; if (aggregateOperator.HasValue) { value = AggregateAggregateValue.TryCreate(aggregateOperator.Value, continuationToken); } else { value = ScalarAggregateValue.TryCreate(continuationToken); } return(value); }
public static AggregateValue Create(AggregateOperator?aggregateOperator, string continuationToken) { AggregateValue value; if (aggregateOperator.HasValue) { value = AggregateAggregateValue.Create(aggregateOperator.Value, continuationToken); } else { value = ScalarAggregateValue.Create(continuationToken); } return(value); }