开发者

Can I host RavenDB inside my self-contained process?

开发者 https://www.devze.com 2023-04-08 21:33 出处:网络
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.

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

精彩评论

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