av激情亚洲男人的天堂国语,日韩欧美精品一中文字幕,无码av一区二区三区无码,国产又色又爽又刺激的a片,国产又色又爽又刺激的a片

開發(fā)人員對WCF編程理解講述

在后臺運(yùn)行WCF編程應(yīng)用程序。出現(xiàn)提示后,單擊OK按鈕激活Web.config中的調(diào)試功能。在控制臺應(yīng)用程序窗口中輸入一個數(shù)字,按下回車鍵,如下圖所示顯示一個簡單的WCF服務(wù)和客戶程序。

試試看:一個簡單的WCF服務(wù)和客戶程序#t#

(1) WCF編程:在目錄C:BegVCSharp\Chapter35下創(chuàng)建一個新的WCF服務(wù)應(yīng)用程序項(xiàng)目Ch35Ex01

(2)WCF編程: 在解決方案中添加一個控制臺應(yīng)用程序Ch35Ex01Client。

(3) WCF編程:在Build菜單上單擊Build Solution選項(xiàng)。

(4)WCF編程: 在Solution Explorer中右擊Ch35Ex01Client,選擇Add Service Reference選項(xiàng)。

(5)WCF編程; 在Add Service Reference對話框中,單擊Discover。

(6)WCF編程: 開始開發(fā)Web服務(wù)器,加載WCF服務(wù)的信息后,展開該引用,查看其細(xì)節(jié),如圖

(7) WCF編程:單擊OK按鈕,添加服務(wù)引用。

(8)WCF編程: 在Ch35Ex01Client應(yīng)用程序中修改Pragram.cs中的代碼,如下所示:

 
 
 
  1. using System;  
  2. using System.Collections.Generic;  
  3. using System.Linq;  
  4. using System.Text;  
  5. using Ch35Ex01Client.ServiceReference1;  
  6. namespace Ch35Ex01Client  
  7. {  
  8. class Program  
  9. {  
  10. static void Main(string[] args)  
  11. {  
  12. string numericInput = null;  
  13. int intParam;  
  14. do  
  15. {  
  16. Console.WriteLine(  
  17. "Enter an integer and press enter to call the WCF service.");  
  18. numericInput = Console.ReadLine();  
  19. }  
  20. while (!int.TryParse(numericInput, out intParam));  
  21. Service1Client client = new Service1Client();  
  22. Console.WriteLine(client.GetData(intParam));  
  23. Console.WriteLine("Press an key to exit.");  
  24. Console.ReadKey();  
  25. }  
  26. }  


分享題目:開發(fā)人員對WCF編程理解講述
網(wǎng)頁地址:http://uogjgqi.cn/article/dpjodds.html
掃二維碼與項(xiàng)目經(jīng)理溝通

我們在微信上24小時期待你的聲音

解答本文疑問/技術(shù)咨詢/運(yùn)營咨詢/技術(shù)建議/互聯(lián)網(wǎng)交流