예제 #1
0
            public static AggregateValue Create(AggregateOperator?aggregateOperator)
            {
                AggregateValue value;

                if (aggregateOperator.HasValue)
                {
                    value = AggregateAggregateValue.Create(aggregateOperator.Value);
                }
                else
                {
                    value = ScalarAggregateValue.Create();
                }

                return(value);
            }
예제 #2
0
            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);
            }