-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding the Azure.Communication.NetworkTraversal SDK - update
- Loading branch information
1 parent
1aff526
commit ede4b12
Showing
21 changed files
with
769 additions
and
188 deletions.
There are no files selected for viewing
11 changes: 4 additions & 7 deletions
11
sdk/communication/Azure.Communication.NetworkTraversal/CHANGELOG.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,10 @@ | ||
# Release History | ||
|
||
## 1.0.0-beta.1 (2021-02-22-preview1) | ||
## 1.0.0-beta.1 (2021-05-25) | ||
|
||
### Added | ||
- Added CommunicationRelayClient in preview. | ||
- Added CommunicationRelayClient.GetRelayConfiguration in preview. | ||
- Added CommunicationRelayClient.GetRelayConfigurationAsync in preview. | ||
This is the first release of Azure Communication Services for Network Traversal. For more information, please see the [README][read_me]. | ||
|
||
### Breaking | ||
This is a Public Preview version, so breaking changes are possible in subsequent releases as we improve the product. To provide feedback, please submit an issue in our [Azure SDK for .NET GitHub repo](https://github.com/Azure/azure-sdk-for-net/issues). | ||
|
||
<!-- LINKS --> | ||
[read_me]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/communication/Azure.Communication.NetworkTraversal/README.md | ||
<!--[read_me]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/communication/Azure.Communication.NetworkTraversal/README.md--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,15 +32,15 @@ var client = new CommunicationRelayClient(connectionString); | |
|
||
Or alternatively using the endpoint and access key acquired from an Azure Communication Resources in the [Azure Portal][azure_portal]. | ||
|
||
```C# Snippet:CreateCommunicationNetworkingFromAccessKey | ||
```C# Snippet:CreateCommunicationRelayFromAccessKey | ||
var endpoint = new Uri("https://my-resource.communication.azure.com"); | ||
var accessKey = "<access_key>"; | ||
var client = new CommunicationRelayClient(endpoint, new AzureKeyCredential(accessKey)); | ||
``` | ||
|
||
Clients also have the option to authenticate using a valid Active Directory token. | ||
|
||
```C# Snippet:CreateCommunicationNetworkingFromToken | ||
```C# Snippet:CreateCommunicationRelayFromToken | ||
var endpoint = new Uri("https://my-resource.communication.azure.com"); | ||
TokenCredential tokenCredential = new DefaultAzureCredential(); | ||
var client = new CommunicationRelayClient(endpoint, tokenCredential); | ||
|
@@ -68,7 +68,7 @@ We guarantee that all client instance methods are thread-safe and independent of | |
|
||
## Generating TURN credentials for a user | ||
|
||
```C# Snippet:CreateTURNTokenAsync | ||
```C# Snippet:GetRelayConfigurationAsync | ||
Response<CommunicationRelayConfiguration> turnTokenResponse = await client.GetRelayConfigurationAsync(user); | ||
DateTimeOffset turnTokenExpiresOn = turnTokenResponse.Value.ExpiresOn; | ||
IReadOnlyList<CommunicationTurnServer> turnServers = turnTokenResponse.Value.TurnServers; | ||
|
@@ -84,6 +84,14 @@ foreach (CommunicationTurnServer turnServer in turnServers) | |
} | ||
``` | ||
|
||
## Troubleshooting | ||
|
||
> TODO | ||
## Next steps | ||
|
||
> TODO | ||
## Contributing | ||
|
||
This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit [cla.microsoft.com][cla]. | ||
|
@@ -94,16 +102,15 @@ This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For m | |
|
||
[azure_sub]: https://azure.microsoft.com/free/ | ||
[azure_portal]: https://portal.azure.com | ||
[source]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/communication/Azure.Communication.NetworkTraversal/src | ||
[source_samples]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/communication/Azure.Communication.NetworkTraversal/samples | ||
<!--[source]: https://github.com/Azure/azure-sdk-for-net/tree/master/sdk/communication/Azure.Communication.NetworkTraversal/src--> | ||
<!--[source_samples]: https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/communication/Azure.Communication.NetworkTraversal/samples--> | ||
[cla]: https://cla.microsoft.com | ||
[coc]: https://opensource.microsoft.com/codeofconduct/ | ||
[coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/ | ||
[coc_contact]: mailto:[email protected] | ||
<!--[package]: https://www.nuget.org/packages/Azure.Communication.NetworkTraversal--> | ||
[product_docs]: https://docs.microsoft.com/azure/communication-services/overview | ||
[nuget]: https://www.nuget.org/ | ||
[user_access_token]: https://docs.microsoft.com/azure/communication-services/quickstarts/access-tokens?pivots=programming-language-csharp | ||
[communication_resource_docs]: https://docs.microsoft.com/azure/communication-services/quickstarts/create-communication-resource?tabs=windows&pivots=platform-azp | ||
[communication_resource_create_portal]: https://docs.microsoft.com/azure/communication-services/quickstarts/create-communication-resource?tabs=windows&pivots=platform-azp | ||
[communication_resource_create_power_shell]: https://docs.microsoft.com/powershell/module/az.communication/new-azcommunicationservice | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
sdk/communication/Azure.Communication.NetworkTraversal/tests.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
trigger: none | ||
|
||
extends: | ||
template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml | ||
parameters: | ||
ServiceDirectory: communication | ||
Project: Azure.Communication.NetworkTraversal | ||
CloudConfig: | ||
Public: | ||
SubscriptionConfigurations: | ||
- $(sub-config-azure-cloud-test-resources) | ||
- $(sub-config-communication-services-cloud-test-resources-common) | ||
- $(sub-config-communication-services-cloud-test-resources-net) | ||
Int: | ||
SubscriptionConfigurations: | ||
- $(sub-config-communication-int-test-resources-common) | ||
- $(sub-config-communication-int-test-resources-net) | ||
Clouds: Public,Int | ||
EnvVars: | ||
# SKIP_PHONENUMBER_LIVE_TESTS skips certain phone number tests such as purchase and release | ||
SKIP_PHONENUMBER_LIVE_TESTS: TRUE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 20 additions & 20 deletions
40
...Records/CommunicationRelayClientLiveTests/GettingTurnCredentialsWithConnectionString.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.