Skip to content

Commit

Permalink
SDK updates for all samples (#14)
Browse files Browse the repository at this point in the history
* SDK updates for all samples

* SDK updates for all samples

* SDK version updates
  • Loading branch information
ravithanneeru authored Sep 15, 2021
1 parent 976a58b commit 68c2768
Show file tree
Hide file tree
Showing 12 changed files with 45 additions and 29 deletions.
4 changes: 2 additions & 2 deletions AccessTokensQuickstart/AccessTokensQuickstart.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Azure.Communication.Identity" Version="1.0.0" />
<PackageReference Include="Azure.Identity" Version="1.3.0" />
<PackageReference Include="Azure.Communication.Identity" Version="1.0.1" />
<PackageReference Include="Azure.Identity" Version="1.4.1" />
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion GetTelephoneNumber/GetTelephoneNumber.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Azure.Communication.PhoneNumbers" Version="1.0.0-beta.6" />
<PackageReference Include="Azure.Communication.PhoneNumbers" Version="1.0.1" />
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion OutboundCallReminder/OutboundCallReminder/App.config
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Azure.Core" publicKeyToken="92742159e12e44c8" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-1.15.0.0" newVersion="1.15.0.0" />
<bindingRedirect oldVersion="0.0.0.0-1.16.0.0" newVersion="1.16.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Azure.Communication.Common" publicKeyToken="92742159e12e44c8" culture="neutral" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,13 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="Azure.Communication.CallingServer">
<Version>1.0.0-beta.1</Version>
<Version>1.0.0-beta.2</Version>
</PackageReference>
<PackageReference Include="Azure.Communication.Identity">
<Version>1.0.1</Version>
</PackageReference>
<PackageReference Include="Azure.Core">
<Version>1.15.0</Version>
<Version>1.18.0</Version>
</PackageReference>
<PackageReference Include="Microsoft.AspNet.WebApi.Owin">
<Version>5.2.7</Version>
Expand All @@ -103,7 +103,7 @@
<Version>3.2.1</Version>
</PackageReference>
<PackageReference Include="Microsoft.CognitiveServices.Speech">
<Version>1.17.0</Version>
<Version>1.18.0</Version>
</PackageReference>
<PackageReference Include="Microsoft.Owin.Host.HttpListener">
<Version>4.2.0</Version>
Expand Down
2 changes: 1 addition & 1 deletion PhoneNumbers/PhoneNumbers.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Azure.Communication.PhoneNumbers" Version="1.0.0-beta.5" />
<PackageReference Include="Azure.Communication.PhoneNumbers" Version="1.0.1" />
</ItemGroup>

</Project>
9 changes: 4 additions & 5 deletions PhoneNumbers/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
using System.Linq;
using System.Threading.Tasks;
using Azure.Communication.PhoneNumbers;
using Azure.Communication.PhoneNumbers.Models;

namespace PhoneNumbers
{
Expand All @@ -25,13 +24,13 @@ static async Task Main(string[] args)

// Purchase searched phone numbers
var purchaseOperation = await client.StartPurchasePhoneNumbersAsync(searchOperation.Value.SearchId);
await purchaseOperation.WaitForCompletionAsync();
await purchaseOperation.WaitForCompletionResponseAsync();

// Get purchased phone number(s)
var getPhoneNumberResponse = await client.GetPhoneNumberAsync(phoneNumber);
var getPhoneNumberResponse = await client.GetPurchasedPhoneNumberAsync(phoneNumber);
Console.WriteLine($"Phone number: {getPhoneNumberResponse.Value.PhoneNumber}, country code: {getPhoneNumberResponse.Value.CountryCode}");

var purchasedPhoneNumbers = client.GetPhoneNumbersAsync();
var purchasedPhoneNumbers = client.GetPurchasedPhoneNumbersAsync();
await foreach (var purchasedPhoneNumber in purchasedPhoneNumbers)
{
Console.WriteLine($"Phone number: {purchasedPhoneNumber.PhoneNumber}, country code: {purchasedPhoneNumber.CountryCode}");
Expand All @@ -43,7 +42,7 @@ static async Task Main(string[] args)

// Release phone number
var releaseOperation = await client.StartReleasePhoneNumberAsync(phoneNumber);
await releaseOperation.WaitForCompletionAsync();
await releaseOperation.WaitForCompletionResponseAsync();
}
}
}
18 changes: 18 additions & 0 deletions SendSMS/Program.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using System;
using System.Collections.Generic;
using Azure;
using Azure.Communication;
using Azure.Communication.Sms;

Expand All @@ -16,6 +18,22 @@ private static void Main()
to: "<to-phone-number>", // E.164 formatted recipient phone number
message: "Hello 👋🏻");
Console.WriteLine($"Message id {sendResult.MessageId}");

Response<IReadOnlyList<SmsSendResult>> response = smsClient.Send(
from: "<from-phone-number>",
to: new string[] { "<to-phone-number-1>", "<to-phone-number-2>" }, // E.164 formatted recipient phone numbers
message: "Hello 👋🏻",
options: new SmsSendOptions(enableDeliveryReport: true) // OPTIONAL
{
Tag = "greeting", // custom tags
});

IEnumerable<SmsSendResult> results = response.Value;
foreach (SmsSendResult result in results)
{
Console.WriteLine($"Sms id: {result.MessageId}");
Console.WriteLine($"Send Result Successful: {result.Successful}");
}
}
}
}
2 changes: 1 addition & 1 deletion SendSMS/SendSMS.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
<TargetFramework>netcoreapp3.1</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Azure.Communication.Sms" Version="1.0.0-beta.1" />
<PackageReference Include="Azure.Communication.Sms" Version="1.0.1" />
</ItemGroup>
</Project>
19 changes: 9 additions & 10 deletions ServerRecording/RecordingApi.csproj
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
</PropertyGroup>
<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Azure.Communication.CallingServer" Version="1.0.0-beta.1" />
<PackageReference Include="Azure.Communication.CallingServer" Version="1.0.0-beta.2" />
<PackageReference Include="Azure.Communication.Identity" Version="1.0.1" />
<PackageReference Include="Azure.Messaging.EventGrid" Version="4.4.0" />
<PackageReference Include="Azure.Storage.Blobs" Version="12.9.0-beta.1" />
<PackageReference Include="Microsoft.AspNetCore.SpaServices" Version="3.1.8" />
<PackageReference Include="Microsoft.AspNetCore.SpaServices.Extensions" Version="3.1.8" />
<PackageReference Include="Azure.Messaging.EventGrid" Version="4.6.0" />
<PackageReference Include="Azure.Storage.Blobs" Version="12.9.1" />
<PackageReference Include="Microsoft.AspNetCore.SpaServices" Version="3.1.18" />
<PackageReference Include="Microsoft.AspNetCore.SpaServices.Extensions" Version="5.0.9" />
</ItemGroup>

</Project>

2 changes: 1 addition & 1 deletion add-chat/ChatQuickstart.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Azure.Communication.Chat" Version="1.0.0" />
<PackageReference Include="Azure.Communication.Chat" Version="1.0.1" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Azure.Identity" Version="1.3.0" />
<PackageReference Include="Azure.Identity" Version="1.4.1" />
<PackageReference Include="Azure.ResourceManager.Communication" Version="1.0.0" />
</ItemGroup>

Expand Down
6 changes: 3 additions & 3 deletions use-managed-Identity/ManagedIdentitiesQuickstart.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Azure.Communication.Identity" Version="1.0.0" />
<PackageReference Include="Azure.Communication.Sms" Version="1.0.0" />
<PackageReference Include="Azure.Identity" Version="1.3.0" />
<PackageReference Include="Azure.Communication.Identity" Version="1.0.1" />
<PackageReference Include="Azure.Communication.Sms" Version="1.0.1" />
<PackageReference Include="Azure.Identity" Version="1.4.1" />
</ItemGroup>

</Project>

0 comments on commit 68c2768

Please sign in to comment.