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 +}