Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I host RavenDB inside my self-contained process?

Tags:

c#

c#-4.0

ravendb

Is it possible to host RavenDB from within my own process? I do not want to use a separate IIS site or run a separate server .exe.

Looking for something pseudo-code like RavenDB.Server.Start(8080) (8080 being the port).

like image 999
Brandon Avatar asked Sep 28 '11 19:09

Brandon


1 Answers

Yes...

var documentStore = new EmbeddableDocumentStore
{
    DataDirectory = "Data",
    UseEmbeddedHttpServer = true
};

See this link for details.

like image 99
Eric Farr Avatar answered Sep 19 '22 02:09

Eric Farr