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

Upgrade bot to latest beta version and showcase the use of IsDeltaRosterEnabled callOption #796

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,9 @@ private static async Task<HttpResponseMessage> ProcessNotificationAsync(ICommuni
// The request is valid. Let's evaluate any policies on the
// incoming call before sending it off to the SDK for processing.
var call = notifications?.Value?.FirstOrDefault()?.GetResourceData() as Call;

// Set the call options to enable delta roster notifications.
call.CallOptions = new IncomingCallOptions { IsDeltaRosterEnabled = true };
var response = await EvaluateAndHandleIncomingCallPoliciesAsync(call).ConfigureAwait(false);
if (response != null)
{
Expand Down
14 changes: 6 additions & 8 deletions Samples/Common/Sample.Common.Beta/Sample.Common.Beta.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<PropertyGroup>
<TargetFrameworks>net472</TargetFrameworks>
<RootNamespace>Sample.Common.Beta</RootNamespace>
<AssemblyName>Sample.Common.Beta</AssemblyName>
Expand All @@ -11,17 +11,15 @@

<ItemGroup>
<PackageReference Include="MSTest.TestFramework" Version="3.5.2" />
<PackageReference Include="Microsoft.Graph.Communications.Calls" Version="1.2.0-beta.9995" TargetFramework="net472" />
<PackageReference Include="Microsoft.Graph.Communications.Client" Version="1.2.0-beta.9995" TargetFramework="net472" />
<PackageReference Include="Microsoft.Graph.Communications.Core" Version="1.2.0-beta.9995" TargetFramework="net472" />
<PackageReference Include="Microsoft.Graph.Communications.Common" Version="1.2.0-beta.9995" TargetFramework="net472" />
<PackageReference Include="Microsoft.IdentityModel.Protocols.OpenIdConnect" Version="8.0.1" />
<PackageReference Include="Microsoft.Graph.Communications.Calls" Version="1.2.0-beta.12553" TargetFramework="net472" />
<PackageReference Include="Microsoft.Graph.Communications.Client" Version="1.2.0-beta.12553" TargetFramework="net472" />
<PackageReference Include="Microsoft.Graph.Communications.Core" Version="1.2.0-beta.12553" TargetFramework="net472" />
<PackageReference Include="Microsoft.Graph.Communications.Common" Version="1.2.0-beta.12553" TargetFramework="net472" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="Microsoft.Extensions.Primitives" Version="8.0.0" />
<PackageReference Include="System.Text.Encodings.Web" Version="8.0.0" />
<PackageReference Include="System.Text.Json" Version="8.0.4" />
<PackageReference Include="System.Text.Json" Version="8.0.5" />
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="8.0.1" />
<PackageReference Include="Microsoft.IdentityModel.Abstractions" Version="8.0.1" />
</ItemGroup>

<ItemGroup Condition=" '$(TargetFramework)' == 'net472' ">
Expand Down