public void FileUpload() { System.IO.FileInfo fileInfo = new System.IO.FileInfo("C:\\DEV\\test.pdf"); using (System.IO.FileStream stream = new System.IO.FileStream("C:\\DEV\\test.pdf", System.IO.FileMode.Open, System.IO.FileAccess.Read)) { WCFService <ILocalService> .getChannelFactory().UploadFile(fileInfo.Name, stream); } }
private void Button3_Click(object sender, EventArgs e) { Dictionary <String, Object> parameters = new Dictionary <String, Object>(); parameters.Add("EQP_ID", "17"); var result = WCFService <ICommonService> .getChannelFactory("Common").SelectDeptList(parameters); parameters.Add("ID", "aaa"); var result2 = WCFService <IAutomationService> .getChannelFactory("Automation").SelectSiteList(parameters); }
public void FileDownload() { Stream stream = WCFService <ILocalService> .getChannelFactory().DownloadFile("test", "pdf"); }