From a98817cee27969c75f9546c07a06ce1e05b5ec98 Mon Sep 17 00:00:00 2001 From: Felix Rieseberg Date: Mon, 6 Jun 2016 16:57:36 -0700 Subject: [PATCH] Update Program.cs --- Samples/BackgroundTasksSample/cs/Win32App/Program.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Samples/BackgroundTasksSample/cs/Win32App/Program.cs b/Samples/BackgroundTasksSample/cs/Win32App/Program.cs index b1db3e89..582bf5be 100644 --- a/Samples/BackgroundTasksSample/cs/Win32App/Program.cs +++ b/Samples/BackgroundTasksSample/cs/Win32App/Program.cs @@ -56,6 +56,10 @@ static async void ThreadProc() Console.ForegroundColor = ConsoleColor.Green; Console.WriteLine("Registration completed for Time trigger event. The backgrond task runs every 15 mins"); Console.WriteLine("Pin the app to start and see how the tile is updated every time the task is triggered"); + + // This will result in "value out of expected range" error. + // It is failing in `toastnotificationactiontrigger.cpp` at `ToastNotificationActionTriggerFactory::ActivateInstance + RegisterBackgroundTask("ToastNotificationTriggerTest", new ToastNotificationActionTrigger()); } /// @@ -80,4 +84,4 @@ public static void RegisterBackgroundTask(String triggerName, IBackgroundTrigger builder.Register(); } } -} \ No newline at end of file +}