Skip to content

Commit 88c453c

Browse files
author
Sudipta Dey (WDG)
committed
Merged PR 15261: [Windows] GraphNotificationsSample update for backround task
Allowing platform to complete notification processing in background
1 parent 3d5bdf5 commit 88c453c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Windows/samples/GraphNotificationsSample/ConnectedDevicesManager.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,9 @@ public async Task ReceiveNotificationAsync(string content)
253253
if (notification != null)
254254
{
255255
await m_platform.ProcessNotificationAsync(notification);
256+
257+
// Wait for 15 seconds for platform to process to notification
258+
await Task.Delay(TimeSpan.FromSeconds(15));
256259
}
257260
}
258261

0 commit comments

Comments
 (0)