29.05.2015 Views

o_19mgorv9t13a3ko71fev19l81mqa.pdf

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Using Other Filter Features<br />

Filtering Without Attributes<br />

Using Global Filters<br />

Ordering Filter Execution<br />

Overriding Filters<br />

Summary<br />

Chapter 19: Controller Extensibility<br />

Preparing the Example Project<br />

Setting the Start URL<br />

Creating a Custom Controller Factory<br />

Dealing with the Fallback Controller<br />

Instantiating Controller Classes<br />

Implementing the Other Interface Methods<br />

Registering a Custom Controller Factory<br />

Working with the Built-in Controller Factory<br />

Prioritizing Namespaces<br />

Customizing DefaultControllerFactory Controller Instantiation<br />

Creating a Custom Action Invoker<br />

Using the Built-in Action Invoker<br />

Using a Custom Action Name<br />

Using Action Method Selection<br />

Improving Performance with Specialized Controllers<br />

Using Sessionless Controllers<br />

Using Asynchronous Controllers<br />

Summary<br />

Chapter 20: Views<br />

Creating a Custom View Engine<br />

Preparing the Example Project<br />

Creating a Custom IView<br />

Creating an IViewEngine Implementation<br />

Registering a Custom View Engine<br />

Testing the View Engine<br />

Working with the Razor Engine<br />

Preparing the Example Project<br />

Understanding Razor View Rendering<br />

Configuring the View Search Locations<br />

Adding Dynamic Content to a Razor View<br />

Using Layout Sections<br />

Using Partial Views<br />

Using Child Actions<br />

Summary<br />

14

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!