public HttpRequestHandlingContext(IMvcRouter mvcRouter,
                                   IResourceRouter resourceRouter,
                                   ICustomRouter customRouter)
 {
     this.mvcRouter      = mvcRouter;
     this.resourceRouter = resourceRouter;
     this.customRouter   = customRouter;
 }
Exemplo n.º 2
0
        public static void Start(IMvcApplication application)
        {
            IDependencyContainer container = new DependencyContainer();

            application.ConfigureServices(container);
            IControllerRouter controllerRouter = new ControllerRouter(container);
            IResourceRouter   resourceRouter   = container.CreateInstance <IResourceRouter>();
            IRouter           router           = new Router(controllerRouter, resourceRouter);

            MvcContext.Get.AssemblyName = Assembly
                                          .GetEntryAssembly()
                                          .GetName()
                                          .Name;
            Server server = new Server(HostingPort, router);

            server.Run();
        }
Exemplo n.º 3
0
 public Manager(bool IsTracingEnabled, string TraceSourceName)
 {
     this.router = new ResourceRouter(IsTracingEnabled, TraceSourceName);
 }
Exemplo n.º 4
0
        public Router(IControllerRouter htmlHandler, IResourceRouter resourceHandler)
        {
            this.htmlHandler = htmlHandler;

            this.resourceHandler = resourceHandler;
        }