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

use async methods in readme #24956

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
8 changes: 4 additions & 4 deletions sdk/communication/Azure.Communication.Identity/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,14 +104,14 @@ Console.WriteLine($"Token: {token.Token}");

In case a user's tokens are compromised or need to be revoked:

```C# Snippet:RevokeCommunicationUserToken
Response revokeResponse = client.RevokeTokens(user);
```C# Snippet:RevokeCommunicationUserTokenAsync
Response revokeResponse = await client.RevokeTokensAsync(user);
```

### Deleting a user

```C# Snippet:DeleteACommunicationUser
Response deleteResponse = client.DeleteUser(user);
```C# Snippet:DeleteACommunicationUserAsync
Response deleteResponse = await client.DeleteUserAsync(user);
```

### Exchanging AAD access token of a Teams User for a Communication Identity access token
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,13 @@ public async Task UserAndTokenLifeCycleAsync()
Console.WriteLine($"Expires On: {expiresOn}");
#endregion Snippet:CreateCommunicationTokenAsync

#region RevokeCommunicationUserTokenAsync
#region Snippet:RevokeCommunicationUserTokenAsync
Response revokeResponse = await client.RevokeTokensAsync(user);
#endregion RevokeCommunicationUserTokenAsync
#endregion Snippet:RevokeCommunicationUserTokenAsync

#region DeleteACommunicationUserAsync
#region Snippet:DeleteACommunicationUserAsync
Response deleteResponse = await client.DeleteUserAsync(user);
#endregion DeleteACommunicationUserAsync
#endregion Snippet:DeleteACommunicationUserAsync
}

[Test]
Expand Down