Beispiel #1
0
        public ICloudTableEntitySegmentedRangeQuery PrepareEntityGetAllSegmentedQuery(int count, string[] properties, Action <ITableRequestOptions> setupOptions)
        {
            Require.NotNull(properties, "properties");

            TableRequestOptions requestOptions = null;

            if (setupOptions != null)
            {
                var adapter = new TableRequestOptionsAdapter();
                setupOptions(adapter);
                requestOptions = adapter.Options;
            }

            return(new CloudTableFilterSegmentedRangeQuery(
                       filter: null,
                       take: count,
                       properties: properties,
                       fetchAsync: ExecuteQueryAsync,
                       fetchSync: ExecuteQuerySync,
                       requestOptions: requestOptions,
                       tableEntityConverter: m_tableEntityConverter));
        }
Beispiel #2
0
        public ICloudTableEntityQuery PrepareEntityPointQuery(string partitionKey, string[] properties, Action <ITableRequestOptions> setupOptions)
        {
            Require.NotNull(partitionKey, "partitionKey");
            Require.NotNull(properties, "properties");

            TableRequestOptions requestOptions = null;

            if (setupOptions != null)
            {
                var adapter = new TableRequestOptionsAdapter();
                setupOptions(adapter);
                requestOptions = adapter.Options;
            }

            return(new CloudTablePointQuery(
                       partitionKey: partitionKey,
                       rowKey: string.Empty,
                       properties: properties,
                       fetchAsync: ExecuteQueryAsync,
                       fetchSync: ExecuteQuerySync,
                       requestOptions: requestOptions,
                       tableEntityConverter: m_tableEntityConverter));
        }
Beispiel #3
0
        public ICloudTableEntityRangeQuery PrepareEntityFilterRangeQuery(string filter, string[] properties, Action <ITableRequestOptions> setupOptions)
        {
            Require.NotNull(filter, "filter");
            Require.NotNull(properties, "properties");

            TableRequestOptions requestOptions = null;

            if (setupOptions != null)
            {
                var adapter = new TableRequestOptionsAdapter();
                setupOptions(adapter);
                requestOptions = adapter.Options;
            }

            return(new CloudTableFilterRangeQuery(
                       filter: filter,
                       take: null,
                       properties: properties,
                       fetchAsync: ExecuteQueryAsync,
                       fetchSync: ExecuteQuerySync,
                       requestOptions: requestOptions,
                       tableEntityConverter: m_tableEntityConverter));
        }