This commit is contained in:
ChristianHenrikReich 2019-04-11 17:14:29 +02:00 коммит произвёл Isaiah Williams
Родитель a3e81a5499
Коммит 0e5d9d2ee3
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -122,7 +122,7 @@ namespace Microsoft.Store.PartnerCenter.Storefront.Controllers
// Get all subscriptions of customer from PC
ResourceCollection<Subscription> customerAllSubscriptions = await localeSpecificPartnerCenterClient.Customers.ById(clientCustomerId).Subscriptions.GetAsync().ConfigureAwait(false);
IEnumerable<CustomerSubscriptionEntity> customerSubscriptions = await ApplicationDomain.Instance.CustomerSubscriptionsRepository.RetrieveAsync(Principal.PartnerCenterCustomerId).ConfigureAwait(false);
IEnumerable<CustomerSubscriptionEntity> customerSubscriptions = await ApplicationDomain.Instance.CustomerSubscriptionsRepository.RetrieveAsync(clientCustomerId).ConfigureAwait(false);
IEnumerable<PartnerOffer> allPartnerOffers = await ApplicationDomain.Instance.OffersRepository.RetrieveAsync().ConfigureAwait(false);
IEnumerable<MicrosoftOffer> currentMicrosoftOffers = await ApplicationDomain.Instance.OffersRepository.RetrieveMicrosoftOffersAsync().ConfigureAwait(false);
@ -219,7 +219,7 @@ namespace Microsoft.Store.PartnerCenter.Storefront.Controllers
};
// Capture the request for customer managed subscriptions and partner managed subscriptions for analysis.
Dictionary<string, string> eventProperties = new Dictionary<string, string> { { "CustomerId", Principal.PartnerCenterCustomerId } };
Dictionary<string, string> eventProperties = new Dictionary<string, string> { { "CustomerId", clientCustomerId } };
// Track the event measurements for analysis.
Dictionary<string, double> eventMetrics = new Dictionary<string, double> { { "ElapsedMilliseconds", DateTime.Now.Subtract(startTime).TotalMilliseconds }, { "CustomerManagedSubscriptions", customerManagedSubscriptions.Count }, { "PartnerManagedSubscriptions", partnerManagedSubscriptions.Count } };