Conversation
|
/azp run net - servicebus - tests |
|
Azure Pipelines successfully started running 1 pipeline(s). |
There was a problem hiding this comment.
I think we shouldn't call ValidateEntityName method for queueOrTopicName and ViaQueueOrTopicName both. Think about if user passes EntityPath with connection string, then one of the above method will fail because we check in ValidateEntityName method that if the entity path specified in both(Connection.EntityPath and entityName) with different value then it will throw an exception.
if (!string.IsNullOrEmpty(Connection.EntityPath) && !string.Equals(entityName, Connection.EntityPath, StringComparison.InvariantCultureIgnoreCase))
{
throw new ArgumentException(Resources.OnlyOneEntityNameMayBeSpecified);
}There was a problem hiding this comment.
Yeah, if they pass an entity name in the connection string that means they won't be able to use SendVia, since they are restricted to that one entity. So in this case we would want to throw an exception.
There was a problem hiding this comment.
Did you forget to update this?
There was a problem hiding this comment.
Can we add this Messages can be added to the batch using the <see cref="TryAdd"/> method on the batch for CreateBatchAsync docs as well?
There was a problem hiding this comment.
nit: ServiceBusClientOptions -> ServiceBusSenderOptions and ServiceBusClient -> ServiceBusSender
There was a problem hiding this comment.
Can we update SendBatchAsync -> SendAsync in the Sending messages section and in the description of Sending and receiving batch of messages?
611eab4 to
c391cc0
Compare
Uh oh!
There was an error while loading. Please reload this page.