Download 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.
Note: |
|---|
|
This sample requires that .NET Framework version 3.5 is installed to build and run. Visual Studio 2008 is required to open the project and solution files.
|
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
See Also
© 2007 Microsoft Corporation. All rights reserved.