Exemplo n.º 1
0
        /// <inheritdoc/>
        protected override void OnBackgroundActivated(Windows.ApplicationModel.Activation.BackgroundActivatedEventArgs args)
        {
            var task = args.TaskInstance;

            CurrentApp.Activate(
                new BackgroundActivatedEventArgs(
                    task.Task.Name,
                    new UwpBackgroundDeferral(() => task.GetDeferral())));
        }
 protected override void OnBackgroundActivated(Windows.ApplicationModel.Activation.BackgroundActivatedEventArgs args)
 {
     _webUIApplication.BackgroundActivate(args);
     base.OnBackgroundActivated(args);
 }
 public void BackgroundActivate(Windows.ApplicationModel.Activation.BackgroundActivatedEventArgs e)
 {
     EventDispatcher.Dispatch(() => Activated?.Invoke(this, new BackgroundActivatedEventArgs(LaunchArgs, e)));
 }