WhatsNewInWCF4 Exercise Notes

本文介绍WCF4中的新特性,包括UDP发现端点和公告端点的使用配置,区别了即席发现与受管发现的工作方式,并介绍了协议桥接的功能。此外,还涉及了基于内容的路由及AppFabric Web部署等内容。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

WhatsNewInWCF4 Training kit: http://msdn.microsoft.com/en-us/vs2010trainingcourse_whatsnewinwcf4#_Toc280957302

1. udpDiscoveryEndpoint and udpAnnouncementEndpoint

<?xml version="1.0"?>
<configuration>
  <system.serviceModel>
    <services>
      <service
        name="Microsoft.Samples.Discovery.ChatService" behaviorConfiguration="DiscoveryBehavior">
        <endpoint
          address=""
          binding="wsHttpBinding"
          contract="ISimpleChatService"/>
        <endpoint
          name="udpDiscoveryEpt"
          kind="udpDiscoveryEndpoint"/>
      </service>
    </services>
    <behaviors>
      <serviceBehaviors>
        <behavior name="DiscoveryBehavior">
          <serviceDiscovery>
            <announcementEndpoints>
              <endpoint name="udpEndpointName"
                        kind="udpAnnouncementEndpoint"/>
            </announcementEndpoints>
          </serviceDiscovery>
        </behavior>
      </serviceBehaviors>
    </behaviors>
  </system.serviceModel>
</configuration>

2. Ad hoc discovery vs. Managed discovery

 Ad hoc discovery is limited to recognizing only services on the same subnet. Managed discovery allows you to locate services no matter where they are, as long as they are registered with a discovery proxy. In this section of the lab, you will create a discovery proxy.



3. Protocol Bridging

WCF4 includes a new routing service found in the System.ServiceModel.Routing namespace. The Routing Service is designed to act as a generic, configurable SOAP intermediary. It allows you to configure Content Based Routing, set up Protocol Bridging, and handle communication errors that you encounter. The Routing Service also makes it possible for you to update your Routing Configuration while the Routing Service is running without restarting the service.


3.1 Protocol Bridging



3.2 Content Based Routing



3.3 Backup Lists


3.4 AppFabric Web Deployment

The goal of Windows Server AppFabric is to simplify the deployment, configuration, management, and monitoring of Windows Communication Foundation (WCF) and Windows Workflow Foundation (WF) services built on .NET 4.




评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值