/// <remarks/> public void DownloadAsync(Download Download1, object userState) { if ((this.DownloadOperationCompleted == null)) { this.DownloadOperationCompleted = new System.Threading.SendOrPostCallback(this.OnDownloadOperationCompleted); } this.InvokeAsync("Download", new object[] { Download1}, this.DownloadOperationCompleted, userState); }
internal static NodeDocumentType[] DownloadHelper(string NodeURL, string secToken, string dataFlow, string transID) { try { NetworkNode2 nn = new NetworkNode2(); nn.Url = NodeURL; Download dl1 = new Download(); dl1.securityToken = secToken; dl1.dataflow = dataFlow; dl1.transactionId = transID; return nn.Download(dl1); } catch { return null; } }
/// <remarks/> public void DownloadAsync(Download Download1) { this.DownloadAsync(Download1, null); }