UriTemplate 表發送器範例
UriTemplateDispatcher 範例 (英文) 示範使用 UriTemplateTable
建置的基本發送引擎,這是 UriTemplateTable
類別的常見使用案例。 UriTemplateTable 類別會提供可用來處理 UriTemplate 執行個體集合的字典式關聯表結構。
這個範例會示範 UriTemplateTable
類別的下列主要概念:
在
UriTemplates
中將委派與UriTemplateTable
加以關聯。使用 MatchSingle 取得特定 URI 的正確處理常式委派。
叫用處理常式委派以處理要求。
若要安裝、建置及執行範例
若要建置方案的 C# 或 Visual Basic .NET 版本,請遵循 Building the Windows Communication Foundation Samples中的指示。
若要在單一或多部電腦組態中執行此範例,請遵循執行 Windows Communication Foundation 範例中的指示進行。