From d53965d1fc03dc1975159778765d3cd8543efdf7 Mon Sep 17 00:00:00 2001 From: Jon Wiswall Date: Tue, 2 Mar 2021 14:02:40 -0800 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Raymond Chen --- specs/PushNotifications/PushNotifications-spec.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/specs/PushNotifications/PushNotifications-spec.md b/specs/PushNotifications/PushNotifications-spec.md index 29a31f162f..c3ab850d24 100644 --- a/specs/PushNotifications/PushNotifications-spec.md +++ b/specs/PushNotifications/PushNotifications-spec.md @@ -101,7 +101,7 @@ int main() // Do stuff to process the raw payload - // Call CompleteDeferral as good practise: Needed mainly for low power usage + // Call CompleteDeferral as good practice: Needed mainly for low power usage pushArgs.CompleteDeferral(); } else if (kind == ReunionActivationKind::Launch) // This indicates that the app is launching in the foreground @@ -109,14 +109,14 @@ int main() // Register an event to Intercept Push payloads auto eventToken = details.PushReceived([](const auto&, PushReceivedEventArgs args) { - // Call TakeDeferral to ensure that code runs in low power + // Call GetDeferral to ensure that code runs in low power args.GetDeferral(); auto payload = args.Payload(); // Do stuff to process the raw payload - // Call CompleteDeferral as good practise: Needed mainly for low power usage + // Call CompleteDeferral as good practice: Needed mainly for low power usage args.CompleteDeferral(); });