תשובה WCF Routes using WebAPI

  • Tuesday, March 06, 2012 6:39 AM
     
      Has Code

    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


    • Edited by Haroon Said Tuesday, March 06, 2012 6:41 AM
    •  

All Replies