偷偷摘套内射激情视频,久久精品99国产国产精,中文字幕无线乱码人妻,中文在线中文a,性爽19p

對(duì)于WCF框架解釋說(shuō)明

開發(fā) 后端
WCF框架作為一個(gè)高效的.NET程序語(yǔ)言。其混合了函數(shù)語(yǔ)言和物件導(dǎo)向程序編制語(yǔ)言,并且完美的適用于編程、算法、技術(shù)和探索性開發(fā),因此可以在使用的過(guò)程當(dāng)中感受到趣味性和吸引力。

WCF框架為終結(jié)點(diǎn)定義了一個(gè)專門的ServiceEndpoint類,被定義在System.ServiceModel.Description命名空間中。ServiceEndpoint類包含了EndpointAddress,Binding,ContractDescription三個(gè)類型的屬性,分別對(duì)應(yīng)Endpoint的Address,Binding,Contract,如下圖:

Endpoint的Address

要獲取服務(wù)的終結(jié)點(diǎn),可以通過(guò)抽象類MetadataImporter獲取,類的定義如下:

  1.  public abstract class MetadataImporter  
  2. {  
  3. public abstract Collection<ContractDescription> ImportAllContracts();  
  4. public abstract ServiceEndpointCollection ImportAllEndpoints();  
  5. 其它方法略;  
  6. }  

WCF框架中,最重要的一個(gè)方法是ImportAllEndpoints(),WCF框架能夠獲取服務(wù)的所有終結(jié)點(diǎn),并返回一個(gè)ServiceEndpointCollection類型的對(duì)象。該WCF框架為一個(gè)終結(jié)點(diǎn)集合,可以通過(guò)調(diào)用ServiceEndpointCollection的Find()方法或FindAll()方法,找到符合條件的一個(gè)或多個(gè)終結(jié)點(diǎn)。它的定義如下:

  1. public class ServiceEndpointCollection : Collection<ServiceEndpoint> 
  2. {  
  3. public ServiceEndpoint Find(Type contractType);  
  4. public ServiceEndpoint Find(Uri address);  
  5. public Collection<ServiceEndpoint> FindAll(Type contractType);  
  6. 其它成員略  
  7. }  
責(zé)任編輯:chenqingxiang 來(lái)源: 百度博客
相關(guān)推薦

2009-12-08 09:33:53

WCF服務(wù)

2009-12-07 18:26:36

WCF客戶端

2009-12-14 09:09:35

VS 2008 Pro

2009-12-07 18:06:46

WCF框架

2009-12-07 16:57:39

WCF安全性

2009-12-09 17:20:13

2009-12-08 16:15:13

WCF服務(wù)

2009-12-04 17:47:04

WCF 服務(wù)

2009-11-24 13:23:11

Visual Stud

2009-12-14 10:19:23

.NET Framew

2009-12-04 17:56:18

WCF 服務(wù)測(cè)試

2009-12-03 15:32:05

Visual Stud

2010-01-08 10:34:49

JavaScript解

2009-12-01 18:07:12

VS 2003工具

2010-01-05 15:40:10

JQuery框架

2009-12-07 09:58:35

WCF性能

2009-12-08 11:08:27

WCF雙向

2009-12-07 16:48:33

WCF 安全性

2009-12-08 10:21:17

WCF地址

2009-12-17 14:59:43

VS 9.0版本
點(diǎn)贊
收藏

51CTO技術(shù)棧公眾號(hào)