Skip to content

PowerManager.EffectivePowerMode should not be IAsyncOperation<T> typed as a property #1770

@jonwis

Description

@jonwis

Describe the bug

This property should instead be EffectivePowerMode EffectivePowerMode { get; } - WinRT properties aren't supposed to be of type IAsyncOperation<T> or IAsyncAction except in some very special cases.

See #1142 for where this was introduced,

static Windows.Foundation.IAsyncOperation<EffectivePowerMode> EffectivePowerMode{ get; };
for details.

Steps to reproduce the bug

Try to use the PowerManager.EffectivePowerMode property, observe that it is async-op instead of just the mode.

Expected behavior

No response

Screenshots

No response

NuGet package version

1.0.0-preview3

Packaging type

No response

Windows version

No response

IDE

No response

Additional context

No response

Metadata

Metadata

Assignees

Labels

api-designUpdates to Project Reunion API surfacesarea-LifecycleTopics related to the AppLifecycle, providing lifecycle management for WindowsAppSDK appsbugSomething isn't workingv1.0.0-preview3Bugs affecting 1.0 Preview 3

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions