Exemplo n.º 1
0
        public MvcApp()
        {
            // Create services
            ControllerService = new ControllerService(this);
            ViewService = new ViewService(this);

            // Document root is the current directory
            DocumentRoot = System.IO.Directory.GetCurrentDirectory();

            // Default session state provider
            SessionStateProvider = new InMemorySessionStateProvider();

            // Allocate server key
            ServerKey = Guid.NewGuid().ToString();
        }
Exemplo n.º 2
0
 public RazorViewEngine(ViewService service)
 {
     this.Service = service;
 }