protected override void OnStart(string[] args) { base.OnStart(args); ConfigureBindings(); var boundUris = HostnameUtil.GetUriParams(4567); _host = new NancyHost(boundUris); _host.Start(); _core = _kernel.Get<IMuroCore>(); try { if (args.Any()) { _core.Initialise(args[0]); } else { _core.Initialise(); } } catch (Exception) { _core.Shutdown(); throw; } }
public MuroModule(IKernel kernel, IMuroCore core) { Get["/"] = parameters => { var pipelines = core.PipelineReports.Values; var pipelineVM = kernel.Get<PipelineReportViewModel>(new ConstructorArgument("pipelines", pipelines)); return View["index", pipelineVM]; }; }