SALES: 1-800-867-1380
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

UriTemplate Table Dispatcher Sample

The UriTemplateTable class provides a dictionary-like associative table structure for working with a set of UriTemplate instances. This sample demonstrates a basic dispatching engine built using UriTemplateTable, a common usage scenario for the UriTemplateTable class.

This sample demonstrates the following key concepts for the UriTemplateTable class:

  • Associating delegates with UriTemplates in a UriTemplateTable.

  • Using MatchSingle to obtain the correct handler delegate for a particular URI.

  • Invoking the handler delegate to process the request.

To set up, build, and run the sample

  1. To build the C# or Visual Basic .NET edition of the solution, follow the instructions in Building the Windows Communication Foundation Samples.

  2. To run the sample in a single- or cross-machine configuration, follow the instructions in Running the Windows Communication Foundation Samples.

Important note Important

The samples may already be installed on your machine. Check for the following (default) directory before continuing.

<InstallDrive>:\WF_WCF_Samples

If this directory does not exist, go to Windows Communication Foundation (WCF) and Windows Workflow Foundation (WF) Samples for .NET Framework 4 to download all Windows Communication Foundation (WCF) and WF samples. This sample is located in the following directory.

<InstallDrive>:\WF_WCF_Samples\WCF\Basic\Web\UriTemplateDispatcher

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft