public Server(params string[] hosts)
        {
            logger = LogManager.GetLogger(typeof(Server));
            host   = new NancyHost(new Bootstrapper(), (from host in hosts select new Uri(host)).ToArray());
            logger.InfoFormat("Server hosts :\n{0}", String.Join("\n", hosts));

            investigationModule = new InvestigationModule();

            Database.SetInitializer(new DbInitializer <DatabaseContext>());
            new DatabaseContext().Database.Initialize(true);

            ServerInit.Init();
        }
        public Server(params string[] hosts)
        {
            logger = LogManager.GetLogger(typeof(Server));
            host = new NancyHost(new Bootstrapper(), (from host in hosts select new Uri(host)).ToArray());
            logger.InfoFormat("Server hosts :\n{0}", String.Join("\n", hosts));

            investigationModule = new InvestigationModule();

            Database.SetInitializer(new DbInitializer<DatabaseContext>());
            new DatabaseContext().Database.Initialize(true);

            ServerInit.Init();
        }