Skip to content

Commit 84ecac6

Browse files
muditjoshiMudit Joshi
andauthored
set IsDeltaRosterEnabled callOption for incoming call options (microsoftgraph#796)
Co-authored-by: Mudit Joshi <muditjoshi@microsoft.com>
1 parent 02875f9 commit 84ecac6

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

Samples/BetaSamples/LocalMediaSamples/PolicyRecordingBot/FrontEnd/Http/Controllers/PlatformCallController.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,9 @@ private static async Task<HttpResponseMessage> ProcessNotificationAsync(ICommuni
167167
// The request is valid. Let's evaluate any policies on the
168168
// incoming call before sending it off to the SDK for processing.
169169
var call = notifications?.Value?.FirstOrDefault()?.GetResourceData() as Call;
170+
171+
// Set the call options to enable delta roster notifications.
172+
call.CallOptions = new IncomingCallOptions { IsDeltaRosterEnabled = true };
170173
var response = await EvaluateAndHandleIncomingCallPoliciesAsync(call).ConfigureAwait(false);
171174
if (response != null)
172175
{

Samples/Common/Sample.Common.Beta/Sample.Common.Beta.csproj

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

3-
<PropertyGroup>
3+
<PropertyGroup>
44
<TargetFrameworks>net472</TargetFrameworks>
55
<RootNamespace>Sample.Common.Beta</RootNamespace>
66
<AssemblyName>Sample.Common.Beta</AssemblyName>
@@ -11,17 +11,15 @@
1111

1212
<ItemGroup>
1313
<PackageReference Include="MSTest.TestFramework" Version="3.5.2" />
14-
<PackageReference Include="Microsoft.Graph.Communications.Calls" Version="1.2.0-beta.9995" TargetFramework="net472" />
15-
<PackageReference Include="Microsoft.Graph.Communications.Client" Version="1.2.0-beta.9995" TargetFramework="net472" />
16-
<PackageReference Include="Microsoft.Graph.Communications.Core" Version="1.2.0-beta.9995" TargetFramework="net472" />
17-
<PackageReference Include="Microsoft.Graph.Communications.Common" Version="1.2.0-beta.9995" TargetFramework="net472" />
18-
<PackageReference Include="Microsoft.IdentityModel.Protocols.OpenIdConnect" Version="8.0.1" />
14+
<PackageReference Include="Microsoft.Graph.Communications.Calls" Version="1.2.0-beta.12553" TargetFramework="net472" />
15+
<PackageReference Include="Microsoft.Graph.Communications.Client" Version="1.2.0-beta.12553" TargetFramework="net472" />
16+
<PackageReference Include="Microsoft.Graph.Communications.Core" Version="1.2.0-beta.12553" TargetFramework="net472" />
17+
<PackageReference Include="Microsoft.Graph.Communications.Common" Version="1.2.0-beta.12553" TargetFramework="net472" />
1918
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
2019
<PackageReference Include="Microsoft.Extensions.Primitives" Version="8.0.0" />
2120
<PackageReference Include="System.Text.Encodings.Web" Version="8.0.0" />
22-
<PackageReference Include="System.Text.Json" Version="8.0.4" />
21+
<PackageReference Include="System.Text.Json" Version="8.0.5" />
2322
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="8.0.1" />
24-
<PackageReference Include="Microsoft.IdentityModel.Abstractions" Version="8.0.1" />
2523
</ItemGroup>
2624

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

0 commit comments

Comments
 (0)