Skip to content

Instantly share code, notes, and snippets.

///
/// I usually create an UmbracoBooter class to set the dependency resolver and config
///
public class UmbracoBooter : IApplicationEventHandler
{
public void OnApplicationStarted(UmbracoApplicationBase umbracoApplication, ApplicationContext applicationContext)
{
var kernel = NinjectWebCommon.UmbracoStart();
DependencyResolver.SetResolver(new Ninject.Web.Mvc.NinjectDependencyResolver(kernel));

Keybase proof

I hereby claim:

  • I am garydevenay on github.
  • I am garydevenay (https://keybase.io/garydevenay) on keybase.
  • I have a public key whose fingerprint is EEAD C560 C8DB BD4F D057 98B5 5495 3123 3DA5 D100

To claim this, I am signing this object:

using System.Web.Mvc;
using Umbraco.Web;
namespace Umbraco.Example.Controllers
{
public class HomeController : RenderMvcController
{
// GET: Home
public ActionResult Home()
{