Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added TaskGroup property support to BackgroundTaskBuilder API #4994

Merged
merged 1 commit into from
Dec 26, 2024

Conversation

godlytalias
Copy link
Contributor

TaskGroup property support has been added to the BackgroundTaskBuilder API.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Signed-off-by: godlytalias <godlytalias@yahoo.co.in>
@godlytalias
Copy link
Contributor Author

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@godlytalias godlytalias requested a review from a team December 20, 2024 17:28
@AjitSurana
Copy link

@godlytalias, please elaborate the purpose of the TaskGroup property.

@godlytalias
Copy link
Contributor Author

@godlytalias, please elaborate the purpose of the TaskGroup property.

Its used for grouping the background tasks. So that apps can get all the tasks under that particular group using AllTasks API (https://learn.microsoft.com/en-us/uwp/api/windows.applicationmodel.background.backgroundtaskregistrationgroup.alltasks?view=winrt-26100)

@AjitSurana
Copy link

@godlytalias, One follow up question - is it possible the same background task registration group has both Windows and Microsoft namespace background tasks? If so, AllTasks sort of properties return correct value?

@godlytalias
Copy link
Contributor Author

@godlytalias, One follow up question - is it possible the same background task registration group has both Windows and Microsoft namespace background tasks? If so, AllTasks sort of properties return correct value?

It returns tasks registered by both namespace APIs as internally WinAppSDK API is calling platform SDK API only. Id, Name etc.. of the tasks will be the same

@godlytalias godlytalias merged commit 4deb44e into main Dec 26, 2024
26 checks passed
@godlytalias godlytalias deleted the user/godlyalias/taskgroup branch December 26, 2024 06:47
codendone pushed a commit that referenced this pull request Jan 10, 2025
Signed-off-by: godlytalias <godlytalias@yahoo.co.in>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants