You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The focus of these changes is implementing the idempotent publishing feature
infrastructure into the `EventHubProducerClient` and associated types,
refactoring the current structure to support idempotent and non-idempotent
publishing as unique code paths.
Not included in these changes is the addition of the `ReadPartitionPublishingProperties`
member and live tests; those will be covered in dedicated work streams.
<value>A producer created for a specific partition cannot send events using a partition key. This producer is associated with partition '{0}'.</value>
175
+
<value>An event cannot be published using both a partition key and a partition identifier. This operation specified partition key `{0}` and partition id `{1}`.</value>
<value>The authorization for a connection string may specifiy a shared key or precomputed shared access signature, but not both. Please verify that your connection string does not have the `SharedAccessSignature` token if you are passing the `SharedKeyName` and `SharedKey`.</value>
292
+
<value>The authorization for a connection string may specify a shared key or pre-computed shared access signature, but not both. Please verify that your connection string does not have the `SharedAccessSignature` token if you are passing the `SharedKeyName` and `SharedKey`.</value>
<value>The producer was configured to use features that require publishing to a specific partition. Publishing with automatic routing or using a partition key is not supported by this producer.</value>
<value>These events have already been successfully published. When idempotent publishing is enabled, events that were acknowledged by the Event Hubs service may not be published again.</value>
Expand all lines: sdk/eventhub/Azure.Messaging.EventHubs/src/Amqp/AmqpClient.cs
+8-1Lines changed: 8 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -13,6 +13,7 @@
13
13
usingAzure.Messaging.EventHubs.Consumer;
14
14
usingAzure.Messaging.EventHubs.Core;
15
15
usingAzure.Messaging.EventHubs.Diagnostics;
16
+
usingAzure.Messaging.EventHubs.Producer;
16
17
usingMicrosoft.Azure.Amqp;
17
18
18
19
namespaceAzure.Messaging.EventHubs.Amqp
@@ -374,11 +375,15 @@ public override async Task<PartitionProperties> GetPartitionPropertiesAsync(stri
374
375
/// </summary>
375
376
///
376
377
/// <param name="partitionId">The identifier of the partition to which the transport producer should be bound; if <c>null</c>, the producer is unbound.</param>
378
+
/// <param name="requestedFeatures">The flags specifying the set of special transport features that should be opted-into.</param>
379
+
/// <param name="partitionOptions">The set of options, if any, that should be considered when initializing the producer.</param>
377
380
/// <param name="retryPolicy">The policy which governs retry behavior and try timeouts.</param>
378
381
///
379
382
/// <returns>A <see cref="TransportProducer"/> configured in the requested manner.</returns>
0 commit comments