예제 #1
0
            async Task <QueueClient> IAsyncConverter <QueueAttribute, QueueClient> .ConvertAsync(
                QueueAttribute attrResolved,
                CancellationToken cancellation)
            {
                QueueClient queue = _bindingProvider.GetQueue(attrResolved);
                await queue.CreateIfNotExistsAsync(cancellationToken : cancellation).ConfigureAwait(false);

                return(queue);
            }
예제 #2
0
            async Task <IStorageQueue> IAsyncConverter <QueueAttribute, IStorageQueue> .ConvertAsync(
                QueueAttribute attrResolved,
                CancellationToken cancellation)
            {
                IStorageQueue queue = _bindingProvider.GetQueue(attrResolved);
                await queue.CreateIfNotExistsAsync(CancellationToken.None);

                return(queue);
            }