c# - 我可以在我的独立进程中托管 RavenDB 吗?

标签 c# c#-4.0 ravendb

是否可以在我自己的进程中托管 RavenDB?我不想使用单独的 IIS 站点或运行单独的服务器 .exe。

寻找类似 RavenDB.Server.Start(8080) 的伪代码(8080 是端口)。

最佳答案

是的...

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

参见 this link了解详情。

关于c# - 我可以在我的独立进程中托管 RavenDB 吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7588349/

相关文章:

c# - 将图片大小调整为 2MB

c# - 动态创建动态 RadioButtonsList

c#-4.0 - 编写要在 Web API MessageHandler 中使用的解压缩机制

backup - 使用 HTTP API 和 Multi-Tenancy 的 RavenDb 备份

unit-testing - RavenDB:获取内存文档存储区 "Voron is prone to failure in 32-bits mode."的异常

c# - 如何抑制 StyleCop 警告 "SA1201: All methods must be placed after all properties."?

c# - C# 中的 Unity GUI TextField

.net - 如何使用代码添加自定义 BizTalk 持久点?

c# - 为什么我得到这个异常(exception)

RavenDB 查询元数据