70-487 question 36 discussion


You need to configure the server to self-host the bookstore's Web API application.
Which code segment should you use?

  • A. Option A
  • B. Option B
  • C. Option C
  • D. Option D
Created 6 months ago by Avenum


true answer B, because in scenario relative paths do not contain the block / api


Answer C is correct, Explanation https://docs.microsoft.com/en-us/aspnet/web-api/overview/web-api-routing-and-actions/routing-and-action-selection and no such method server.wait().openAysnc(). correct method is server.openAysnc()wait(). Class - https://msdn.microsoft.com/en-us/library/system.web.http.selfhost.httpselfhostserver(v=vs.118).aspx