Lưu ý
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử đăng nhập hoặc thay đổi thư mục.
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử thay đổi thư mục.
The UriTemplateDispatcher sample demonstrates a basic dispatching engine built using UriTemplateTable, a common usage scenario for the UriTemplateTable class. The UriTemplateTable class provides a dictionary-like associative table structure for working with a set of UriTemplate instances.
This sample demonstrates the following key concepts for the UriTemplateTable class:
Associating delegates with
UriTemplatesin aUriTemplateTable.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
To build the C# or Visual Basic .NET edition of the solution, follow the instructions in Building the Windows Communication Foundation Samples.
To run the sample in a single- or cross-machine configuration, follow the instructions in Running the Windows Communication Foundation Samples.