Ejemplo n.º 1
0
 // Token: 0x06000BA8 RID: 2984 RVA: 0x0002F8F4 File Offset: 0x0002DAF4
 internal void TestParseResponse(IDownloadAppRequestAsset requestAsset, DownloadApp.SuccessCallback successCallback, BaseAsyncCommand.FailureCallback failureCallback, byte[] responseBuffer, int responseBufferSize)
 {
     this.downloadRequestAsset = requestAsset;
     this.successCallback      = successCallback;
     this.failureCallback      = failureCallback;
     this.ParseResponse(responseBuffer, responseBufferSize);
 }
Ejemplo n.º 2
0
        // Token: 0x06000BA3 RID: 2979 RVA: 0x0002F744 File Offset: 0x0002D944
        public void Execute(IDownloadAppRequestAsset asset, string deploymentId, BaseAsyncCommand.GetLoggedMailboxIdentifierCallback getloggedMailboxIdentifierCallback, DownloadApp.SuccessCallback successCallback, BaseAsyncCommand.FailureCallback failureCallback)
        {
            if (asset == null)
            {
                throw new ArgumentNullException("asset");
            }
            if (getloggedMailboxIdentifierCallback == null)
            {
                throw new ArgumentNullException("getloggedMailboxIdentifierCallback");
            }
            if (successCallback == null)
            {
                throw new ArgumentNullException("successCallback");
            }
            if (failureCallback == null)
            {
                throw new ArgumentNullException("failureCallback");
            }
            this.getLoggedMailboxIdentifierCallback = getloggedMailboxIdentifierCallback;
            this.successCallback      = successCallback;
            this.failureCallback      = failureCallback;
            this.downloadRequestAsset = asset;
            this.periodicKey          = asset.MarketplaceAssetID;
            string uriString = this.urlsCache.DownloadUrl + DownloadApp.CreateQueryString(asset, deploymentId, this.requestId);
            Uri    uri       = new Uri(uriString);

            base.InternalExecute(uri);
        }
Ejemplo n.º 3
0
        // Token: 0x06000BA4 RID: 2980 RVA: 0x0002F7E4 File Offset: 0x0002D9E4
        internal static string CreateQueryString(IDownloadAppRequestAsset asset, string deploymentId, string requestId)
        {
            string installedOwaVersion = DefaultExtensionTable.GetInstalledOwaVersion();
            string text = string.Format("?cmu={0}&av=MOW&ret=0&assetid={1}&build={2}&deployId={3}&corr={4}", new object[]
            {
                asset.MarketplaceContentMarket,
                asset.MarketplaceAssetID,
                installedOwaVersion,
                deploymentId,
                requestId
            });

            if (!string.IsNullOrWhiteSpace(asset.Etoken))
            {
                text += string.Format("&clienttoken={0}", asset.Etoken);
            }
            return(text);
        }