Exemple #1
0
 public RavenDbServer(RavenConfiguration settings)
 {
     settings.LoadLoggingSettings();
     database = new DocumentDatabase(settings);
     database.SpinBackgroundWorkers();
     server = new HttpServer(settings, database);
     server.Start();
 }
Exemple #2
0
        static ForwardToRavenRespondersFactory()
        {
            lock (locker)
            {
                if (database != null)
                {
                    return;
                }

                ravenConfiguration.LoadLoggingSettings();

                database = new DocumentDatabase(ravenConfiguration);
                database.SpinBackgroundWorkers();
                server = new RavenDbHttpServer(ravenConfiguration, database);
            }
        }
Exemple #3
0
        public RavenDbServer(RavenConfiguration settings)
        {
            settings.LoadLoggingSettings();
            database = new DocumentDatabase(settings);

            try
            {
                database.SpinBackgroundWorkers();
                server = new RavenDbHttpServer(settings, database);
                server.Start();
            }
            catch (Exception)
            {
                database.Dispose();
                database = null;

                throw;
            }
        }