Skip to content

Commit 834ddd4

Browse files
authored
[Microsoft.Azure.ServiceBus] Fix event source messages 40 and 41 (Azure#22009)
* Fix typo: `AmqpSendAuthenticanToken` → `AmqpSendAuthenticationToken` * Fix claims: `System.String[]` → `Manage,Listen`
1 parent e33bbdd commit 834ddd4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sdk/servicebus/Microsoft.Azure.ServiceBus/src/MessagingEventSource.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -423,17 +423,17 @@ public void AmqpSendAuthenticationTokenStart(Uri address, string audience, strin
423423
{
424424
if (this.IsEnabled())
425425
{
426-
this.AmqpSendAuthenticationTokenStart(address.ToString(), audience, resource, claims.ToString());
426+
this.AmqpSendAuthenticationTokenStart(address.ToString(), audience, resource, string.Join(",", claims));
427427
}
428428
}
429429

430-
[Event(40, Level = EventLevel.Verbose, Message = "AmqpSendAuthenticanToken started. Address: {0}, Audience: {1}, Resource: {2}, Claims: {3}")]
430+
[Event(40, Level = EventLevel.Verbose, Message = "AmqpSendAuthenticationToken started. Address: {0}, Audience: {1}, Resource: {2}, Claims: {3}")]
431431
void AmqpSendAuthenticationTokenStart(string address, string audience, string resource, string claims)
432432
{
433433
this.WriteEvent(40, address, audience, resource, claims);
434434
}
435435

436-
[Event(41, Level = EventLevel.Verbose, Message = "AmqpSendAuthenticanToken done.")]
436+
[Event(41, Level = EventLevel.Verbose, Message = "AmqpSendAuthenticationToken done.")]
437437
public void AmqpSendAuthenticationTokenStop()
438438
{
439439
if (this.IsEnabled())

0 commit comments

Comments
 (0)