Exemplo n.º 1
0
 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);
     }
 }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
 public void FileDownload()
 {
     Stream stream = WCFService <ILocalService> .getChannelFactory().DownloadFile("test", "pdf");
 }