Skip to content

Commit c95a083

Browse files
authored
Merge pull request #192 from unoplatform/dev/jelawinui-1-2-breakingchange
fix: Remove OnBackgroundActivated for WinUI
2 parents b700914 + 0b1ea61 commit c95a083

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

CommunityToolkit.WinUI.SampleApp/App.xaml.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,7 @@ protected override async void OnLaunched(Microsoft.UI.Xaml.LaunchActivatedEventA
246246
// UNO TODO SystemInformation.Instance.TrackAppUse(e);
247247
}
248248

249+
/*
249250
/// <summary>
250251
/// Event fired when a Background Task is activated (in Single Process Model)
251252
/// </summary>
@@ -256,17 +257,16 @@ protected override void OnBackgroundActivated(BackgroundActivatedEventArgs args)
256257
257258
var deferral = args.TaskInstance.GetDeferral();
258259
259-
#if !HAS_UNO
260260
switch (args.TaskInstance.Task.Name)
261261
{
262262
case Constants.TestBackgroundTaskName:
263263
new TestBackgroundTask().Run(args.TaskInstance);
264264
break;
265265
}
266-
#endif
267266
268267
deferral.Complete();
269268
}
269+
*/
270270

271271
private async System.Threading.Tasks.Task RunAppInitialization(string launchParameters)
272272
{

0 commit comments

Comments
 (0)