Ejemplo n.º 1
0
        protected override async void OnBackgroundActivated(BackgroundActivatedEventArgs args)
        {
            base.OnBackgroundActivated(args);

            var taskName = args.TaskInstance.Task.Name;

            switch (taskName)
            {
            case "CheckNotificationsTask":
                await BackgroundService.CheckNotificationsTask(args.TaskInstance);

                break;

            default:
                break;
            }
        }