开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜