Can I host RavenDB inside my self-contained process?
Is it possible to host RavenDB from within my own process? I do not want to use a separate IIS s开发者_运维技巧ite 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.
精彩评论