PrepAway - Latest Free Exam Questions & Answers

Which code segments should you include in Target 1 and Target 2 to complete the code?

DRAG DROP
You are developing an ASP.NET Web API for a home inventory management system.
You need to limit access to users with IP addresses based only in the United States.
You have the following code:

Which code segments should you include in Target 1 and Target 2 to complete the code?
(To answer, drag the appropriate code segments to the correct targets in the answer area.
Each code segment may be used once, more than once, or not at all. You may need to drag
the split bar between panes or scroll to view content.)

PrepAway - Latest Free Exam Questions & Answers

Answer:

One Comment on “Which code segments should you include in Target 1 and Target 2 to complete the code?

  1. Anon says:

    At first I questioned the answer, HttpActionContext.

    HttpActionContext is used for Web API (System.Web.Http), while AuthorizationContext would be used for an MVC Controller (System.Web.Mvc)




    0



    0

Leave a Reply