WhatsNewInWCF4 Exercise Notes

来源:互联网 发布:好的英语听力软件 编辑:程序博客网 时间:2024/06/02 05:44

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 discoveryallows 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.