source/TestCommon/source/FunctionApp.TestCommon/ServiceBus/ResourceProvider/QueueResourceBuilder.cs
/// <summary>
/// Create Service Bus queue according to configured builder.
/// </summary>
/// <returns>Instance with information about the created queue.</returns>
Create Service Bus queue according to configured builder.
Create Service Bus queue according to configured builder .
public async Task<QueueResource> CreateAsync()
        {
            ResourceProvider.TestLogger.WriteLine($"Creating queue '{CreateQueueOptions.Name}'");
            var response = await ResourceProvider.AdministrationClient.CreateQueueAsync(CreateQueueOptions)
                .ConfigureAwait(false);
            var queueName = response.Value.Name;
            var queueResource = new QueueResource(ResourceProvider, response.Value);
            ResourceProvider.QueueResources.Add(queueName, queueResource);
            foreach (var postAction in PostActions)
            {
                postAction(response.Value);
            }
            return queueResource;
        }
public async Task < QueueResource > CreateAsync ( ) { ResourceProvider . TestLogger . WriteLine ( $" Creating queue ' { CreateQueueOptions . Name } ' " ) ; var response = await ResourceProvider . AdministrationClient . CreateQueueAsync ( CreateQueueOptions ) . ConfigureAwait ( false ) ; var queueName = response . Value . Name ; var queueResource = new QueueResource ( ResourceProvider , response . Value ) ; ResourceProvider . QueueResources . Add ( queueName , queueResource ) ; foreach ( var postAction in PostActions ) { postAction ( response . Value ) ; } return queueResource ; }
Create Service Bus queue according to configured builder.
Create Service Bus queue according to configured builder .
Instance with information about the created queue.
Instance with information about the created queue .