Ejemplo n.º 1
0
        public RackDispatcher(HttpContext context) {
            Utils.Log("");
            Utils.Log("=== Booting ironruby-rack at " + DateTime.Now.ToString());

            try {
                var stopWatch = new Stopwatch();
                stopWatch.Start();

                App = new IronRubyApplication(context.Request.PhysicalApplicationPath);
                Handler.AspNet.Run(App);

                stopWatch.Stop();
                Utils.Log("=> Rack application loaded (" + stopWatch.ElapsedMilliseconds + " ms)");
            } catch (Exception e) {
                _failed = true;
                Utils.ReportError(context, e);
            }
        }
Ejemplo n.º 2
0
        public RackDispatcher(HttpContext context)
        {
            Utils.Log("");
            Utils.Log("=== Booting ironruby-rack at " + DateTime.Now.ToString());

            try {
                var stopWatch = new Stopwatch();
                stopWatch.Start();

                App = new IronRubyApplication(context.Request.PhysicalApplicationPath);
                Handler.AspNet.Run(App);

                stopWatch.Stop();
                Utils.Log("=> Rack application loaded (" + stopWatch.ElapsedMilliseconds + " ms)");
            } catch (Exception e) {
                _failed = true;
                Utils.ReportError(context, e);
            }
        }