DALs.AzureStorage/QueueClient.cs
/// <summary>
/// peek as an asynchronous operation.
/// </summary>
/// <typeparam name="T"></typeparam>
/// <param name="queueName">Name of the queue.</param>
/// <param name="loader">The loader.</param>
/// <param name="top">The top.</param>
/// <returns>Task&lt;IEnumerable&lt;T&gt;&gt;.</returns>
peek as an asynchronous operation.
peek as an asynchronous operation .
public virtual async Task<IEnumerable<T>> PeekAsync<T>(string queueName, Func<CloudQueueMessage, T> loader, int top = 32)
        {
            CloudQueue queue = client.GetQueueReference(queueName);
            var msgs = await queue.PeekMessagesAsync(top);
            return msgs.Select(loader);
        }
public virtual async Task < IEnumerable < T > > PeekAsync < T > ( string queueName , Func < CloudQueueMessage , T > loader , int top = 32 ) { CloudQueue queue = client . GetQueueReference ( queueName ) ; var msgs = await queue . PeekMessagesAsync ( top ) ; return msgs . Select ( loader ) ; }
peek as an asynchronous operation.
peek as an asynchronous operation .
None
queueName
string
Name of the queue.
Name of the queue .
loader
Func<CloudQueueMessage, T>
None
top
int
None
typeparam
None