Answered WCF Routes using WebAPI

  • 2012年3月6日 上午 06:39
     
      包含代碼

    Is is possible to create a WCF Data Service using the pattern used by MapHttpRoute, something as follows:

    routes.MapHttpRoute(
              name: "Account",
              routeTemplate: "Case/{accountname}",
              defaults: new DataServiceHostFactory()
          );
    where on CreatDataSource - I could get the value of "accountname" to determine some bussiness logic?

    Haroon


    • 已編輯 Haroon Said 2012年3月6日 上午 06:41
    •  

所有回覆