|
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.SessionState;
using Mvc4.Controllers;
namespace Mvc4.Components
{
//public class CustomControllerFactory : IControllerFactory
//{
// public IController CreateController(System.Web.Routing.RequestContext requestContext, string controllerName)
// {
// ILogger logger = new DefaultLogger();
// var controller = new HomeController(logger);
// return controller;
// }
// public System.Web.SessionState.SessionStateBehavior GetControllerSessionBehavior(System.Web.Routing.RequestContext requestContext, string controllerName)
// {
// return SessionStateBehavior.Default;
// }
// public void ReleaseController(IController controller)
// {
// //cleanup code
// IDisposable disposable = controller as IDisposable;
// if (disposable != null)
// {
// disposable.Dispose();
// }
// }
//}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.