예제 #1
0
 /// <summary>
 /// Returns an enumerable collection of the queues in the storage account whose names begin with the specified prefix and that are retrieved lazily.
 /// </summary>
 /// <param name="prefix">The queue name prefix.</param>
 /// <param name="detailsIncluded">One of the enumeration values that indicates which details to include in the listing.</param>
 /// <returns>An enumerable collection of queues that are retrieved lazily.</returns>
 public IEnumerable <CloudQueue> ListQueues(string prefix, QueueListingDetails detailsIncluded)
 {
     return(CommonUtils.LazyEnumerateSegmented <CloudQueue>(
                (setResult) => this.ListQueuesImpl(prefix, detailsIncluded, null, null, setResult),
                this.RetryPolicy));
 }
 /// <summary>
 /// Returns an enumerable collection of table names that begin with the specified prefix and that are retrieved lazily.
 /// </summary>
 /// <param name="prefix">The table name prefix.</param>
 /// <returns>An enumerable collection of table names that are retrieved lazily.</returns>
 public IEnumerable <string> ListTables(string prefix)
 {
     return(CommonUtils.LazyEnumerateSegmented <string>(
                (setResult) => this.ListTablesSegmentedImpl(prefix, null, null, setResult),
                this.RetryPolicy));
 }
예제 #3
0
 /// <summary>
 /// Executes the query with the retry policy specified on the <see cref="CloudTableQuery&lt;TElement&gt;"/> object.
 /// </summary>
 /// <returns>The results of the query, retrieved lazily.</returns>
 public IEnumerable <TElement> Execute()
 {
     return(CommonUtils.LazyEnumerateSegmented <TElement>((setResult) => this.ExecuteSegmentedImpl(null, setResult), this.RetryPolicy));
 }
예제 #4
0
 /// <summary>
 /// Executes the query with the retry policy specified on the <see cref="CloudTableQuery&lt;TElement&gt;"/> object.
 /// </summary>
 /// <param name="continuationToken">A continuation token returned by a previous listing operation.</param>
 /// <returns>The results of the query, retrieved lazily.</returns>
 public IEnumerable <TElement> Execute(ResultContinuation continuationToken)
 {
     return(CommonUtils.LazyEnumerateSegmented <TElement>(
                (setResult) => this.ExecuteSegmentedImpl(continuationToken, setResult),
                this.RetryPolicy));
 }
        /// <summary>
        /// Returns an enumerable collection of blob items in this virtual directory that is lazily retrieved, either as a flat listing or by virtual subdirectory.
        /// </summary>
        /// <param name="options">An object that specifies any additional options for the request.</param>
        /// <returns>An enumerable collection of objects that implement <see cref="IListBlobItem"/> and are retrieved lazily.</returns>
        public IEnumerable <IListBlobItem> ListBlobs(BlobRequestOptions options)
        {
            var fullModifiers = BlobRequestOptions.CreateFullModifier(this.ServiceClient, options);

            return(CommonUtils.LazyEnumerateSegmented <IListBlobItem>((setResult) => this.Container.ListBlobsImpl(this.Prefix, fullModifiers, null, null, setResult), fullModifiers.RetryPolicy));
        }