-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Expose Agreements and Locale Fields in COM #2897
Conversation
Windows::Foundation::Collections::IVector<winrt::Microsoft::Management::Deployment::Documentation> m_documentations{ nullptr }; | ||
Windows::Foundation::Collections::IVector<hstring> m_tags{ nullptr }; | ||
#endif | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PurchaseURL?
Moniker?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I haven't looked at the implementation really, was just reviewing the interface changes.
API looks good, but I haven't reviewed implementation.
var installResult = await this.packageManager.InstallPackageAsync(searchResult.CatalogPackage, installOptions); | ||
|
||
// Assert | ||
Assert.AreEqual(InstallResultStatus.CatalogError, installResult.Status); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed to new error - 'PackageAgreementsNotAccepted'
The changes in this PR expose all of the locale fields including agreements. Also provides a way for the COM caller to accept or reject package/source agreements. To avoid breaking existing usage, the default behavior for accepting source/package agreements has been set to true.
Changes:
AcceptPackageAgreements(bool)
AcceptSourceAgreements(bool)
GetCatalogPackageMetadata()
with no parameters uses the default localization, whileGetCatalogPackageMetadata(string locale)
applies the specified locale and retrieves those locale fields.Tests:
Added tests to verify that all locale fields and agreements are outputted correctly.
Microsoft Reviewers: Open in CodeFlow