コード例 #1
0
 static void Main(string[] args)
 {
     MvcAppBuilder
     .Create()
     .UseApp <DemoChromelyApp>()
     .Build()
     .Run(args);
 }
コード例 #2
0
        /// <summary>
        /// Creates new Twino MVC
        /// </summary>
        public TwinoMvc()
        {
            Routes            = new List <RouteLeaf>();
            Services          = new ServiceContainer();
            RouteFinder       = new RouteFinder();
            ControllerFactory = new ControllerFactory();
            NotFoundResult    = StatusCodeResult.NotFound();
            ErrorHandler      = new DefaultErrorHandler();
            Policies          = new PolicyContainer();

            AppBuilder = new MvcAppBuilder(this);
        }
コード例 #3
0
ファイル: MvcConnectionHandler.cs プロジェクト: ciker/twino
 public MvcConnectionHandler(TwinoMvc mvc, MvcAppBuilder app)
 {
     Mvc = mvc;
     App = app;
 }