ASP.NET MVC

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    Favorites, Groups & Events

    ASP.NET MVC - Presentation Transcript

    1. ASP.NET MVC Under the Hood
      Paul Stovell
      Readify
    2. Agenda
      ASP.NET MVC 101
      ASP.NET MVC Pipeline
      Controller Factories
      Action Invokers
      Model Binders
      Action Filters
      Action Results
      View Engines
    3. Introducing ASP.NET MVC
    4. GET /
      View
      Controller
      Model
    5. ASP.NET MVC Pipeline
    6. ASP.NET Request Pipeline
      Module
      Module
      Module
      Handler
      public interface IHttpHandler
      {
      void ProcessRequest(
      HttpContext context);
      boolIsReusable { get; }
      }
      Handler
      Internet
      Handler
      Handler
      Handler
    7. Web Forms
      <%@ Page Language="C#"
      CodeBehind="Default.aspx.cs"
      Inherits="Sample.DefaultPage"
      %>
      <div>
      <asp:TextBoxrunat="server" />
      </div>
      PreInit
      Init
      InitComplete
      PreLoad
      Load
      Control Events
      LoadComplete
      PreRender
      SaveStateComplete
      Render
      Unload
      namespace ASP {
      public class default_aspx
      : Sample.DefaultPage,
      System.Web.IHttpHandler
      {
    8. MVC Pipeline
      Internet
      Module
      Module
      Controller Factory
      Routing
      Controller.Execute()
      MvcHandler
      Action Invoker
      View Engine
    9. MVC Pipeline: Controller Factories
      public interface IControllerFactory
      {
      IControllerCreateController(
      RequestContextrequestContext,
      string controllerName);
      void ReleaseController(
      IController controller);
      }
    10. MVC Pipeline: Controllers
      public interface IController
      {
      void Execute(
      RequestContextrequestContext);
      }
      Controller
      IActionInvoker
    11. MVC Pipeline: Action Invoker
      public interface IActionInvoker
      {
      boolInvokeAction(
      ControllerContextcontrollerContext,
      string actionName);
      }
    12. MVC Pipeline: Action Invoker
      Action Invoker
      Find Action
      Authorization Filters
      Request Validation
      Model Binders
      Pre-Action Filters
      Invoke
      Post-Action Filters
      Execute Action Result
    13. MVC Pipeline: Model Binders
      public interface IModelBinder
      {
      object BindModel(
      ControllerContextcontrollerContext,
      ModelBindingContextbindingContext);
      }
    14. MVC Pipeline: Action Filters
      public interface IActionFilter
      {
      void OnActionExecuting(
      ActionExecutingContextfilterContext);
      void OnActionExecuted(
      ActionExecutedContextfilterContext);
      }
    15. MVC Pipeline: Action Results
      public abstract class ActionResult
      {
      public abstract void ExecuteResult(
      ControllerContext context);
      }
      ViewResultBase
      RedirectResult
      JsonResult
      FileResult
      ViewResult
      PartialViewResult
    16. MVC Pipeline: View Engines
      public interface IViewEngine
      {
      ViewEngineResultFindPartialView(
      ControllerContextcontrollerContext,
      string partialViewName,
      booluseCache);
      ViewEngineResultFindView(
      ControllerContextcontrollerContext,
      string viewName,
      string masterName,
      booluseCache);
      void ReleaseView(
      ControllerContextcontrollerContext,
      IView view);
      }
    17. Summary
    18. Q&A
      www.asp.net/mvc
      http://www.mokosh.co.uk/page/VsCommands.aspx
      Paul Stovell
      paul.stovell@readify.net
      www.paulstovell.com

    + stovellpstovellp, 1 month ago

    custom

    148 views, 0 favs, 0 embeds more stats

    More info about this document

    © All Rights Reserved

    Go to text version

    • Total Views 148
      • 148 on SlideShare
      • 0 from embeds
    • Comments 0
    • Favorites 0
    • Downloads 9
    Most viewed embeds

    more

    All embeds

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as inappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel
    File a copyright complaint
    Having problems? Go to our helpdesk?

    Categories

    Tags