Пример #1
0
        private async Task CancelQueuedUpdatesAsync(StoreContext storeContext)
        {
            IReadOnlyList <StoreQueueItem> queuedUpdates =
                await storeContext.GetAssociatedStoreQueueItemsAsync();

            foreach (var update in queuedUpdates)
            {
                Debug.WriteLine($"{this.GetType()}: CancelQueuedUpdatesAsync: " +
                                $"Canceling {update.PackageFamilyName}");
                await update.CancelInstallAsync();
            }
        }