|
1 | 1 | // Copyright (c) .NET Foundation. All rights reserved. |
2 | 2 | // Licensed under the MIT License. See License.txt in the project root for license information. |
3 | 3 |
|
4 | | -using Azure.Messaging.EventHubs; |
5 | 4 | using System.Collections.Generic; |
6 | 5 | using System.Globalization; |
7 | | -using Azure.Messaging.EventHubs.Consumer; |
| 6 | +using Azure.Messaging.EventHubs; |
8 | 7 | using Azure.Messaging.EventHubs.Primitives; |
9 | 8 | using Microsoft.Azure.WebJobs.EventHubs.Processor; |
10 | 9 |
|
@@ -83,11 +82,15 @@ public Dictionary<string, string> GetTriggerDetails(EventProcessorPartition cont |
83 | 82 |
|
84 | 83 | return new Dictionary<string, string>() |
85 | 84 | { |
86 | | - { "PartionId", context.PartitionId }, |
| 85 | + { "PartitionId", context.PartitionId }, |
87 | 86 | { "Offset", offset }, |
88 | 87 | { "EnqueueTimeUtc", enqueueTimeUtc }, |
89 | 88 | { "SequenceNumber", sequenceNumber }, |
90 | | - { "Count", Events.Length.ToString(CultureInfo.InvariantCulture)} |
| 89 | + { "Count", Events.Length.ToString(CultureInfo.InvariantCulture)}, |
| 90 | + |
| 91 | + // Preserve a misspelling that existed in the original code, as |
| 92 | + // there may be applications relying on this. |
| 93 | + { "PartionId", context.PartitionId } |
91 | 94 | }; |
92 | 95 | } |
93 | 96 | } |
|
0 commit comments