<

Question 13


70-486 Skills Measured >> 1.7 Implement synchronous and asynchronous modules and handlers, choose between modules and handlers in IIS >>

Question

Drag and Drop
You are developing an ASP.NET MVC application that takes customer orders. Orders are restricted to customers with IP addresses based in the United States. You need to implement a custom route handler. How should you implement the route handler? (To answer, drag the appropriate line of code to the correct location or locations. Each line of code 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.)

  • IHttpHandler
  • IRouteFactory
  • IRouteHandler
  • IHttpContraint
  • RequestContext
  • ServerContext
public class USOnlyRouteHandler :

    {
    public
      GetHttpHandler(
        requestContext) {
        return new USIPHandler(requestContext)
        }

        Answer:

        • IRouteFactory
        • IHttpContraint
        • ServerContext
        public class USOnlyRouteHandler :
        • IRouteHandler
        {
        public
        • IHttpHandler
        GetHttpHandler(
        • RequestContext
        requestContext) {
        return new USIPHandler(requestContext)
        }