Skip to content

Commit

Permalink
Update Snippet and Export-API.
Browse files Browse the repository at this point in the history
  • Loading branch information
zihzhan-msft committed Jun 9, 2021
1 parent 09a1452 commit dee33cf
Show file tree
Hide file tree
Showing 6 changed files with 114 additions and 114 deletions.
6 changes: 3 additions & 3 deletions sdk/communication/Azure.Communication.CallingServer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Calling server client can be authenticated using the connection string acquired

```C# Snippet:Azure_Communication_ServerCalling_Tests_Samples_CreateServerCallingClient
var connectionString = "<connection_string>"; // Find your Communication Services resource in the Azure portal
CallingServerClient client = new CallingServerClient(connectionString);
CallingServerClient callingServerClient = new CallingServerClient(connectionString);
```

## Examples
Expand All @@ -49,12 +49,12 @@ var createCallOption = new CreateCallOptions(
});
```
```C# Snippet:Azure_Communication_Call_Tests_CreateCallAsync
var callConnection = await callClient.CreateCallConnectionAsync(
var callConnection = await callingServerClient.CreateCallConnectionAsync(
source: new CommunicationUserIdentifier("<source-identifier>"), // Your Azure Communication Resource Guid Id used to make a Call
targets: new List<CommunicationIdentifier>() { new PhoneNumberIdentifier("<targets-phone-number>") }, // E.164 formatted recipient phone number
options: createCallOption // The options for creating a call.
);
Console.WriteLine($"Call Leg id: {callConnection.Value.CallConnectionId}");
Console.WriteLine($"Call connection id: {callConnection.Value.CallConnectionId}");
```

## Troubleshooting
Expand Down
Loading

0 comments on commit dee33cf

Please sign in to comment.