question

AxD avatar image
AxD asked ·

Feedback on Windows.ApplicationModel.Background.SystemCondition

Invited by https://docs.microsoft.com/en-us/uwp/api/windows.applicationmodel.background.backgroundtaskbuilder.addcondition, suggesting to leave feedback on the product, I cannot withhold from signifying my astonishment about a cumbersome design like this:

A class (SystemCondition) with an enum as sole constructor parameter, representing just that enum? And the enum itself (SystemConditionType) doesn't come with a FlagsAttribute and binary values to be able to provide more than one condition in a single call to BackgroundTaskBuilder.AddCondition?

Really? How awkward is that?

Why didn't they just enable a construct like this:

 BackgroundTaskBuilder.AddCondition(SystemConditionType.SessionConnected | SystemConditionType.InternetAvailable);


windows-uwp-runtimewindows-uwp-feedback
1 comment
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@AxD Thank you so much for your feedback. It is recommended that you go to the Feedback Hub and submit a feedback.

0 Votes 0 · ·

0 Answers