Aaron Skonnard President/CEO, Pluralsight SESSION CODE: ASI312
Simplified configuration DiscoveryRouting service WCF WebHttp Services Workflow Services (+ WS AppFabric) Advanced Features
Simplified Configuration
......
Standard endpoint nameDescription mexEndpoint Defines a standard endpoint for MEX configured with IMetadataExchange for the service contract, mexHttpBinding as the default binding (you can change this), and an empty address. dynamicEndpoint Defines a standard endpoint configured to use WCF Discovery within a WCF client application. When using this standard endpoint, an address is not required because during the first call, the client will query for a service endpoint matching the specified contract and automatically connect to it for you. discoveryEndpoint Defines a standard endpoint that is pre-configured for discovery operations within a client application. The user needs to specify the address and the binding when using this standard endpoint. udpDiscoveryEndpoint Defines a standard endpoint that is pre-configured for discovery operations within a client application using the UDP binding at a multicast address. Derives from DiscoveryEndpoint. announcementEndpoint Defines a standard endpoint that is pre-configured for the announcement functionality of discovery. The user needs to specify the address and the binding when using this standard endpoint. udpAnnouncementEndpoint Defines a standard endpoint that is pre-configured for the announcement functionality over a UDP binding at a multicast address. This endpoint derives from announcementEndpoint. workflowControlEndpoint Defines a standard endpoint for controlling execution of workflow instances (create, run, suspend, terminate, etc). webHttpEndpoint Defines a standard endpoint configured with WebHttpBinding and WebHttpBehavior. Use to expose REST services. webScriptEndpoint Defines a standard endpoint configured with WebHttpBinding and WebScriptEnablingBehavior. Use to expose Ajax services.
Service Discovery
Clients can discover services on a local subnet (UDP-based) Clients can discover services on a larger "managed" network (beyond the local subnet) through a discovery proxy AdhocManaged
Routing Service
Client Service Router "filters"
WCF WebHttp Services
Automatic help page HTTP caching Message format selection HTTP “faults” WCF/ASP.NET routes REST project templates Various API extensions
[AspNetCacheProfile("CacheFor60Seconds")] [WebGet(UriTemplate=XmlItemTemplate)] [OperationContract] public Counter GetItemInXml() { return HandleGet(); } [AspNetCacheProfile("CacheFor60Seconds")] [WebGet(UriTemplate=XmlItemTemplate)] [OperationContract] public Counter GetItemInXml() { return HandleGet(); }
<standardEndpoint name="" helpEnabled="true" automaticFormatSelectionEnabled="true"/> <standardEndpoint name="" helpEnabled="true" automaticFormatSelectionEnabled="true"/>
private void RegisterRoutes() { WebServiceHostFactory factory = new WebServiceHostFactory(); RouteTable.Routes.Add(new ServiceRoute("Bookmarks", factory, typeof(BookmarkService))); RouteTable.Routes.Add(new ServiceRoute("Users", factory, typeof(UserService))); } private void RegisterRoutes() { WebServiceHostFactory factory = new WebServiceHostFactory(); RouteTable.Routes.Add(new ServiceRoute("Bookmarks", factory, typeof(BookmarkService))); RouteTable.Routes.Add(new ServiceRoute("Users", factory, typeof(UserService))); }
Workflow Services & Windows Server AppFabric see session #XXX
Required Slide Track PMs will supply the content for this slide, which will be inserted during the final scrub.
Sign up for Tech·Ed 2011 and save $500 starting June 8 – June 31 st You can also register at the North America 2011 kiosk located at registration Join us in Atlanta next year