Esempio n. 1
0
        private Stream DownloadDataFromOfficeMarketPlace(string marketplaceAssetID, string marketplaceQueryMarket, string marketplaceServicesUrl, string etoken)
        {
            IConfigDataProvider currentDataSession = base.DataSession;

            return(this.DownloadDataFromUri(delegate()
            {
                SynchronousDownloadData synchronousDownloadData = new SynchronousDownloadData();
                string domain = ((OWAExtensionDataProvider)currentDataSession).MailboxSession.MailboxOwner.MailboxInfo.PrimarySmtpAddress.Domain;
                string deploymentId = ExtensionDataHelper.GetDeploymentId(domain);
                return synchronousDownloadData.Execute(marketplaceServicesUrl, marketplaceAssetID, marketplaceQueryMarket, deploymentId, etoken);
            }));
        }
Esempio n. 2
0
 private Stream DownloadDataFromUri(Uri uri)
 {
     return(this.DownloadDataFromUri(() => SynchronousDownloadData.DownloadDataFromUri(uri, 262144L, new Func <long, bool, bool>(ExtensionData.ValidateManifestSize), true, this.isBposUser)));
 }