Learn your way! Get started

ASP.NET Web API, Part 4 of 4: Hosting and Dependency Resolution

with expert Phil Ledgerwood


Course at a glance

Included in these subscriptions:

  • Dev & IT Pro Video
  • Dev & IT Pro Power Pack

Release date 6/18/2012
Level Advanced
Runtime 1h 3m
Closed captioning Included
Transcript Included
eBooks / courseware Included
Hands-on labs Included
Sample code Included
Exams Included


Enterprise Solutions

Need reporting, custom learning tracks, or SCORM? Learn More



Course description

The ASP.NET Web API Hosting and Dependency Resolution course opens with Dependency Injection centered on working with Inversion Control and DI Frameworks. The course then moves on to Dependency Resolvers and Lambda Expressions, then finishing up with Hosting, covering IIS and Self Hosting.

Prerequisites

This course assumes that students have some programming background and experience using Visual Studio 2010 and Visual C#. A basic understanding of JavaScript, the ASP.NET MVC framework, and web services will be helpful but not required.

Learning Paths

This course will help you prepare for the following certifications and exams:
MCSD: SharePoint Applications
MCSD: Web Applications
70-486: Developing ASP.NET MVC Web Applications

This course is part of the following LearnNowOnline SuccessPaths™:
Building Web Services

Meet the expert

Philip Ledgerwood has been a software developer for fifteen years. He currently works primarily in .NET technologies producing custom software for organizations of all sizes. He has also done extensive training for those same organizations in both technical and business process topics. Philip is a strong advocate of Lean and agile software development and spends most of his time helping companies interested in the value those practices can bring to their development efforts. He does this through a combination of training and working "in the trenches" as a developer on these teams, keeping a hand in the academic side of emerging technology and practices while also directly applying it in real projects to bring real business value.

Course outline



ASP.NET Web API Hosting and Dependency Resolution

Dependency Injection (24:09)
  • Introduction (01:16)
  • Inversion of Control (01:34)
  • Dependency Injection (04:22)
  • DI Frameworks (03:32)
  • Demo: Dependency Injection (02:31)
  • Demo: Wireup to API (02:28)
  • Demo: Create Class (01:33)
  • Demo: Concrete Types (04:02)
  • Demo: Recap (02:25)
  • Summary (00:23)
Dependency Resolvers (16:55)
  • Introduction (01:15)
  • Dependency Resolvers (01:39)
  • Lambda Expressions (01:51)
  • IDependencyResolver (02:23)
  • Demo: Lambda Expressions (03:57)
  • Demo: IDependencyResolver (04:14)
  • Demo: Instance of Resolver (01:12)
  • Summary (00:20)
Hosting (22:52)
  • Introduction (00:54)
  • Hosting (03:15)
  • IIS (01:57)
  • Self Hosting (02:56)
  • Demo: Web API Services (02:06)
  • Demo: Adding DLLs (03:33)
  • Demo: Basic Classes (02:42)
  • Demo: Program Class (01:34)
  • Demo: Add Routing (03:28)
  • Summary (00:22)