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).
Yes...
var documentStore = new EmbeddableDocumentStore
{
DataDirectory = "Data",
UseEmbeddedHttpServer = true
};
See this link for details.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With