protected async override Task OnInitializedAsync() { await base.OnInitializedAsync(); try { var uri = navi.ToAbsoluteUri(navi.Uri); string _proformaNo = ""; string _seller = ""; string _securityCode = ""; if (QueryHelpers.ParseQuery(uri.Query).TryGetValue("ProformaNo", out var ProformaNo)) { _proformaNo = ProformaNo.ToString(); } if (QueryHelpers.ParseQuery(uri.Query).TryGetValue("Seller", out var Seller)) { _seller = Seller.ToString(); } if (QueryHelpers.ParseQuery(uri.Query).TryGetValue("SecurityCode", out var SecurityCode)) { _securityCode = SecurityCode.ToString(); } var key = SPC.Helper.Extension.SPCHash.CRCToBase36(String.Format("{0}:{1}", _seller.Trim(), _proformaNo.Trim())); var theXmlUrl = await SPC.eInvoice.OneInvoice.GetXmlUrlAsync(_seller, _proformaNo, key); if (!string.IsNullOrWhiteSpace(theXmlUrl)) { await SPC.Cloud.Blob.Storage.SetDownloadContentTypeForBlobAsync(theXmlUrl); //navi.NavigateTo(theXmlUrl,true); await jsRuntime.InvokeAsync <object>("open", theXmlUrl, "_blank"); } } catch (Exception) { } }