Skip to content
This repository was archived by the owner on Jun 30, 2021. It is now read-only.

Main Simplify.Web principles

Alexanderius edited this page Feb 2, 2017 · 8 revisions
  • It has controllers (which processes HTTP request);
  • Views (which generates page content (not needed for small pages, because StaticTpl controller response or Tpl controller response can be used));
  • Model - your entity classes.
  • Controllers can get view model from HTTP request using Controller<T> And AsyncController<T> controllers base classes and Model property in them;
  • Can set view model to HTTP response by ITemplate.Model extension method.

Simplify.Web pipeline

  1. Simplify.Web receives incoming HTTP request;
  2. Creates instances of controllers (which can handle current request) via IOC container;
  3. Executes controllers instances;
  4. Processes controllers responses;
  5. Builds page:
  • Loads Master.tpl template;
  • Inserts data from DataCollector class to it;
  • Sets Simplify.Web variables;
  1. Sends generated page to client.
  • If controller returns Redirect response or Ajax response then the 5 and 6 step will be skipped;
  • If current request is a request for static file and it is available for process (exists), then it will be processed by static files request handler (or by IIS, if it is hosted in Katana) and the 2 step and above will be skipped.

<< Previous page Next page >>

Clone this wiki locally