NerdDinner.Controllers.StructureMapControllerFactory.GetControllerInstance C# (CSharp) Method

GetControllerInstance() protected method

protected GetControllerInstance ( Type controllerType ) : IController
controllerType System.Type
return IController
        protected override IController GetControllerInstance(Type controllerType)
        {
            if (controllerType == null) return null;
            try
            {
                return ObjectFactory.GetInstance(controllerType) as Controller;
            }

            catch (StructureMapException)
            {
                System.Diagnostics.Debug.WriteLine(ObjectFactory.WhatDoIHave());
                throw;
            }
        }
StructureMapControllerFactory