source/TestCommon/source/FunctionApp.TestCommon/ServiceBus/ResourceProvider/ServiceBusResourceProvider.cs
/// <summary>
/// Build a queue with a name based on <paramref name="queueNamePrefix"/> and <see cref="RandomSuffix"/>.
/// </summary>
/// <param name="queueNamePrefix">The queue name will start with this name.</param>
/// <param name="maxDeliveryCount"></param>
/// <param name="lockDuration"></param>
/// <param name="requiresSession"></param>
/// <returns>Queue resource builder.</returns>
Build a queue with a name based on  and .
Build a queue with a name based on and .
public QueueResourceBuilder BuildQueue(
            string queueNamePrefix,
            int maxDeliveryCount = 1,
            TimeSpan? lockDuration = null,
            bool requiresSession = false)
        {
            var queueName = BuildResourceName(queueNamePrefix);
            var createQueueOptions = new CreateQueueOptions(queueName)
            {
                AutoDeleteOnIdle = AutoDeleteOnIdleTimeout,
                MaxDeliveryCount = maxDeliveryCount,
                LockDuration = lockDuration ?? TimeSpan.FromMinutes(1),
                RequiresSession = requiresSession,
            };
            return new QueueResourceBuilder(this, createQueueOptions);
        }
public QueueResourceBuilder BuildQueue ( string queueNamePrefix , int maxDeliveryCount = 1 , TimeSpan ? lockDuration = null , bool requiresSession = false ) { var queueName = BuildResourceName ( queueNamePrefix ) ; var createQueueOptions = new CreateQueueOptions ( queueName ) { AutoDeleteOnIdle = AutoDeleteOnIdleTimeout , MaxDeliveryCount = maxDeliveryCount , LockDuration = lockDuration ?? TimeSpan . FromMinutes ( 1 ) , RequiresSession = requiresSession , } ; return new QueueResourceBuilder ( this , createQueueOptions ) ; }
Build a queue with a name based on  and .
Build a queue with a name based on and .
Queue resource builder.
Queue resource builder .
queueNamePrefix
string
The queue name will start with this name.
The queue name will start with this name .
maxDeliveryCount
int
None
lockDuration
TimeSpan?
None
requiresSession
bool
None