File tree 3 files changed +4
-0
lines changed
src/Microsoft.Management.Deployment
3 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -47,6 +47,7 @@ namespace winrt::Microsoft::Management::Deployment::implementation
47
47
}
48
48
winrt::Windows::Foundation::IAsyncOperation<winrt::Microsoft::Management::Deployment::FindPackagesResult> PackageCatalog::FindPackagesAsync (winrt::Microsoft::Management::Deployment::FindPackagesOptions options)
49
49
{
50
+ auto strong_this = get_strong ();
50
51
co_await resume_background ();
51
52
co_return FindPackages (options);
52
53
}
Original file line number Diff line number Diff line change @@ -311,6 +311,7 @@ namespace winrt::Microsoft::Management::Deployment::implementation
311
311
// Check for permissions and get caller info for telemetry
312
312
THROW_IF_FAILED (EnsureComCallerHasCapability (Capability::PackageQuery));
313
313
314
+ auto strong_this = get_strong ();
314
315
auto report_progress{ co_await winrt::get_progress_token () };
315
316
co_await winrt::resume_background ();
316
317
Original file line number Diff line number Diff line change @@ -1329,6 +1329,7 @@ namespace winrt::Microsoft::Management::Deployment::implementation
1329
1329
1330
1330
::AppInstaller::Repository::Source sourceToAdd = CreateSourceFromOptions (options);
1331
1331
1332
+ auto strong_this = get_strong ();
1332
1333
auto report_progress{ co_await winrt::get_progress_token () };
1333
1334
co_await winrt::resume_background ();
1334
1335
@@ -1367,6 +1368,7 @@ namespace winrt::Microsoft::Management::Deployment::implementation
1367
1368
auto matchingSource = GetMatchingSource (winrt::to_string (options.Name ()));
1368
1369
THROW_HR_IF (APPINSTALLER_CLI_ERROR_SOURCE_NAME_DOES_NOT_EXIST, !matchingSource.has_value ());
1369
1370
1371
+ auto strong_this = get_strong ();
1370
1372
auto report_progress{ co_await winrt::get_progress_token () };
1371
1373
co_await winrt::resume_background ();
1372
1374
You can’t perform that action at this time.
0 commit comments