QueueClient Constructors

Definition

Overloads

QueueClient(ServiceBusConnectionStringBuilder, ReceiveMode, RetryPolicy)

Instantiates a new QueueClient to perform operations on a queue.

QueueClient(String, String, ReceiveMode, RetryPolicy)

Instantiates a new QueueClient to perform operations on a queue.

QueueClient(String, String, ITokenProvider, TransportType, ReceiveMode, RetryPolicy)

Creates a new instance of the Queue client using the specified endpoint, entity path, and token provider.

QueueClient(ServiceBusConnectionStringBuilder, ReceiveMode, RetryPolicy)

Instantiates a new QueueClient to perform operations on a queue.

public QueueClient (Microsoft.Azure.ServiceBus.ServiceBusConnectionStringBuilder connectionStringBuilder, Microsoft.Azure.ServiceBus.ReceiveMode receiveMode = Microsoft.Azure.ServiceBus.ReceiveMode.PeekLock, Microsoft.Azure.ServiceBus.RetryPolicy retryPolicy = null);
new Microsoft.Azure.ServiceBus.QueueClient : Microsoft.Azure.ServiceBus.ServiceBusConnectionStringBuilder * Microsoft.Azure.ServiceBus.ReceiveMode * Microsoft.Azure.ServiceBus.RetryPolicy -> Microsoft.Azure.ServiceBus.QueueClient

Parameters

connectionStringBuilder
ServiceBusConnectionStringBuilder

ServiceBusConnectionStringBuilder having namespace and queue information.

receiveMode
ReceiveMode

Mode of receive of messages. Defaults to ReceiveMode.PeekLock.

retryPolicy
RetryPolicy

Retry policy for queue operations. Defaults to Default

Remarks

Creates a new connection to the queue, which is opened during the first send/receive operation.

Applies to

QueueClient(String, String, ReceiveMode, RetryPolicy)

Instantiates a new QueueClient to perform operations on a queue.

public QueueClient (string connectionString, string entityPath, Microsoft.Azure.ServiceBus.ReceiveMode receiveMode = Microsoft.Azure.ServiceBus.ReceiveMode.PeekLock, Microsoft.Azure.ServiceBus.RetryPolicy retryPolicy = null);
new Microsoft.Azure.ServiceBus.QueueClient : string * string * Microsoft.Azure.ServiceBus.ReceiveMode * Microsoft.Azure.ServiceBus.RetryPolicy -> Microsoft.Azure.ServiceBus.QueueClient

Parameters

connectionString
System.String

Namespace connection string. Must not contain queue information.

entityPath
System.String

Name of the queue

receiveMode
ReceiveMode

Mode of receive of messages. Defaults to ReceiveMode.PeekLock.

retryPolicy
RetryPolicy

Retry policy for queue operations. Defaults to Default

Remarks

Creates a new connection to the queue, which is opened during the first send/receive operation.

Applies to

QueueClient(String, String, ITokenProvider, TransportType, ReceiveMode, RetryPolicy)

Creates a new instance of the Queue client using the specified endpoint, entity path, and token provider.

public QueueClient (string endpoint, string entityPath, Microsoft.Azure.ServiceBus.Primitives.ITokenProvider tokenProvider, Microsoft.Azure.ServiceBus.TransportType transportType = Microsoft.Azure.ServiceBus.TransportType.Amqp, Microsoft.Azure.ServiceBus.ReceiveMode receiveMode = Microsoft.Azure.ServiceBus.ReceiveMode.PeekLock, Microsoft.Azure.ServiceBus.RetryPolicy retryPolicy = null);
new Microsoft.Azure.ServiceBus.QueueClient : string * string * Microsoft.Azure.ServiceBus.Primitives.ITokenProvider * Microsoft.Azure.ServiceBus.TransportType * Microsoft.Azure.ServiceBus.ReceiveMode * Microsoft.Azure.ServiceBus.RetryPolicy -> Microsoft.Azure.ServiceBus.QueueClient

Parameters

endpoint
System.String

Fully qualified domain name for Service Bus. Most likely, {yournamespace}.servicebus.windows.net

entityPath
System.String

Queue path.

tokenProvider
ITokenProvider

Token provider which will generate security tokens for authorization.

transportType
TransportType

Transport type.

receiveMode
ReceiveMode

Mode of receive of messages. Defaults to ReceiveMode.PeekLock.

retryPolicy
RetryPolicy

Retry policy for queue operations. Defaults to Default

Applies to