Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/Microsoft.Management.Deployment/PackageCatalog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ namespace winrt::Microsoft::Management::Deployment::implementation
}
winrt::Windows::Foundation::IAsyncOperation<winrt::Microsoft::Management::Deployment::FindPackagesResult> PackageCatalog::FindPackagesAsync(winrt::Microsoft::Management::Deployment::FindPackagesOptions options)
{
auto strong_this = get_strong();
co_await resume_background();
co_return FindPackages(options);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,7 @@ namespace winrt::Microsoft::Management::Deployment::implementation
// Check for permissions and get caller info for telemetry
THROW_IF_FAILED(EnsureComCallerHasCapability(Capability::PackageQuery));

auto strong_this = get_strong();
auto report_progress{ co_await winrt::get_progress_token() };
co_await winrt::resume_background();

Expand Down
2 changes: 2 additions & 0 deletions src/Microsoft.Management.Deployment/PackageManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1329,6 +1329,7 @@ namespace winrt::Microsoft::Management::Deployment::implementation

::AppInstaller::Repository::Source sourceToAdd = CreateSourceFromOptions(options);

auto strong_this = get_strong();
auto report_progress{ co_await winrt::get_progress_token() };
co_await winrt::resume_background();

Expand Down Expand Up @@ -1367,6 +1368,7 @@ namespace winrt::Microsoft::Management::Deployment::implementation
auto matchingSource = GetMatchingSource(winrt::to_string(options.Name()));
THROW_HR_IF(APPINSTALLER_CLI_ERROR_SOURCE_NAME_DOES_NOT_EXIST, !matchingSource.has_value());

auto strong_this = get_strong();
auto report_progress{ co_await winrt::get_progress_token() };
co_await winrt::resume_background();

Expand Down
Loading