Megosztás a következőn keresztül:


MessageSender Constructors

Definition

Overloads

MessageSender(ServiceBusConnectionStringBuilder, RetryPolicy)

Creates a new AMQP MessageSender.

MessageSender(ServiceBusConnection, String, RetryPolicy)

Creates a new AMQP MessageSender on a given ServiceBusConnection

MessageSender(String, String, RetryPolicy)

Creates a new AMQP MessageSender.

MessageSender(ServiceBusConnection, String, String, RetryPolicy)

Creates a ViaMessageSender. This can be used to send messages to a destination entity via another another entity.

MessageSender(String, String, ITokenProvider, TransportType, RetryPolicy)

Creates a new MessageSender

MessageSender(ServiceBusConnectionStringBuilder, RetryPolicy)

Source:
MessageSender.cs

Creates a new AMQP MessageSender.

public MessageSender (Microsoft.Azure.ServiceBus.ServiceBusConnectionStringBuilder connectionStringBuilder, Microsoft.Azure.ServiceBus.RetryPolicy retryPolicy = default);
new Microsoft.Azure.ServiceBus.Core.MessageSender : Microsoft.Azure.ServiceBus.ServiceBusConnectionStringBuilder * Microsoft.Azure.ServiceBus.RetryPolicy -> Microsoft.Azure.ServiceBus.Core.MessageSender
Public Sub New (connectionStringBuilder As ServiceBusConnectionStringBuilder, Optional retryPolicy As RetryPolicy = Nothing)

Parameters

connectionStringBuilder
ServiceBusConnectionStringBuilder

The ServiceBusConnectionStringBuilder having entity level connection details.

retryPolicy
RetryPolicy

The RetryPolicy that will be used when communicating with Service Bus. Defaults to Default

Remarks

Creates a new connection to the entity, which is opened during the first operation.

Applies to

MessageSender(ServiceBusConnection, String, RetryPolicy)

Source:
MessageSender.cs

Creates a new AMQP MessageSender on a given ServiceBusConnection

public MessageSender (Microsoft.Azure.ServiceBus.ServiceBusConnection serviceBusConnection, string entityPath, Microsoft.Azure.ServiceBus.RetryPolicy retryPolicy = default);
new Microsoft.Azure.ServiceBus.Core.MessageSender : Microsoft.Azure.ServiceBus.ServiceBusConnection * string * Microsoft.Azure.ServiceBus.RetryPolicy -> Microsoft.Azure.ServiceBus.Core.MessageSender
Public Sub New (serviceBusConnection As ServiceBusConnection, entityPath As String, Optional retryPolicy As RetryPolicy = Nothing)

Parameters

serviceBusConnection
ServiceBusConnection

Connection object to the service bus namespace.

entityPath
String

The path of the entity this sender should connect to.

retryPolicy
RetryPolicy

The RetryPolicy that will be used when communicating with Service Bus. Defaults to Default

Applies to

MessageSender(String, String, RetryPolicy)

Source:
MessageSender.cs

Creates a new AMQP MessageSender.

public MessageSender (string connectionString, string entityPath, Microsoft.Azure.ServiceBus.RetryPolicy retryPolicy = default);
new Microsoft.Azure.ServiceBus.Core.MessageSender : string * string * Microsoft.Azure.ServiceBus.RetryPolicy -> Microsoft.Azure.ServiceBus.Core.MessageSender
Public Sub New (connectionString As String, entityPath As String, Optional retryPolicy As RetryPolicy = Nothing)

Parameters

connectionString
String

Namespace connection string used to communicate with Service Bus. Must not contain Entity details.

entityPath
String

The path of the entity this sender should connect to.

retryPolicy
RetryPolicy

The RetryPolicy that will be used when communicating with Service Bus. Defaults to Default

Remarks

Creates a new connection to the entity, which is opened during the first operation.

Applies to

MessageSender(ServiceBusConnection, String, String, RetryPolicy)

Source:
MessageSender.cs

Creates a ViaMessageSender. This can be used to send messages to a destination entity via another another entity.

public MessageSender (Microsoft.Azure.ServiceBus.ServiceBusConnection serviceBusConnection, string entityPath, string viaEntityPath, Microsoft.Azure.ServiceBus.RetryPolicy retryPolicy = default);
new Microsoft.Azure.ServiceBus.Core.MessageSender : Microsoft.Azure.ServiceBus.ServiceBusConnection * string * string * Microsoft.Azure.ServiceBus.RetryPolicy -> Microsoft.Azure.ServiceBus.Core.MessageSender
Public Sub New (serviceBusConnection As ServiceBusConnection, entityPath As String, viaEntityPath As String, Optional retryPolicy As RetryPolicy = Nothing)

Parameters

serviceBusConnection
ServiceBusConnection

Connection object to the service bus namespace.

entityPath
String

The final destination of the message.

viaEntityPath
String

The first destination of the message.

retryPolicy
RetryPolicy

The RetryPolicy that will be used when communicating with Service Bus. Defaults to Default

Remarks

This is mainly to be used when sending messages in a transaction. When messages need to be sent across entities in a single transaction, this can be used to ensure all the messages land initially in the same entity/partition for local transactions, and then let service bus handle transferring the message to the actual destination.

Applies to

MessageSender(String, String, ITokenProvider, TransportType, RetryPolicy)

Source:
MessageSender.cs

Creates a new MessageSender

public MessageSender (string endpoint, string entityPath, Microsoft.Azure.ServiceBus.Primitives.ITokenProvider tokenProvider, Microsoft.Azure.ServiceBus.TransportType transportType = Microsoft.Azure.ServiceBus.TransportType.Amqp, Microsoft.Azure.ServiceBus.RetryPolicy retryPolicy = default);
new Microsoft.Azure.ServiceBus.Core.MessageSender : string * string * Microsoft.Azure.ServiceBus.Primitives.ITokenProvider * Microsoft.Azure.ServiceBus.TransportType * Microsoft.Azure.ServiceBus.RetryPolicy -> Microsoft.Azure.ServiceBus.Core.MessageSender
Public Sub New (endpoint As String, entityPath As String, tokenProvider As ITokenProvider, Optional transportType As TransportType = Microsoft.Azure.ServiceBus.TransportType.Amqp, Optional retryPolicy As RetryPolicy = Nothing)

Parameters

endpoint
String

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

entityPath
String

Queue path.

tokenProvider
ITokenProvider

Token provider which will generate security tokens for authorization.

transportType
TransportType

Transport type.

retryPolicy
RetryPolicy

Retry policy for queue operations. Defaults to Default

Remarks

Creates a new connection to the entity, which is opened during the first operation.

Applies to