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
Describe the bug
This property should instead be
EffectivePowerMode EffectivePowerMode { get; }- WinRT properties aren't supposed to be of typeIAsyncOperation<T>orIAsyncActionexcept in some very special cases.See #1142 for where this was introduced,
WindowsAppSDK/dev/PowerNotifications/PowerNotifications.idl
Line 98 in 97943aa
Steps to reproduce the bug
Try to use the
PowerManager.EffectivePowerModeproperty, 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