Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove duplicate credential instantiation line in ACS Email README #45076

Merged
merged 1 commit into from
Jul 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions sdk/communication/Azure.Communication.Email/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ Alternatively, Email clients can also be authenticated using a valid token crede

```C# Snippet:Azure_Communication_Email_CreateEmailClientWithToken
string endpoint = "<endpoint_url>";
TokenCredential tokenCredential = new DefaultAzureCredential();
tokenCredential = new DefaultAzureCredential();
var tokenCredential = new DefaultAzureCredential();
EmailClient emailClient = new EmailClient(new Uri(endpoint), tokenCredential);
```
## Examples
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,10 @@ public EmailClient CreateSmsClientWithToken()
}
else
{
tokenCredential = new DefaultAzureCredential();
#region Snippet:Azure_Communication_Email_CreateEmailClientWithToken
//@@ string endpoint = "<endpoint_url>";
//@@ TokenCredential tokenCredential = new DefaultAzureCredential();
/*@@*/
tokenCredential = new DefaultAzureCredential();
//@@ var tokenCredential = new DefaultAzureCredential();
//@@ EmailClient emailClient = new EmailClient(new Uri(endpoint), tokenCredential);
#endregion Snippet:Azure_Communication_Email_CreateEmailClientWithToken
}
Expand Down