0
目前,无论我需要连接到RavenDB,我的ASP.NET MVC站点中都有类似这样的东西。如何为全局RavenDB设置FailoverBehavior
using (var ds = new DocumentStore { Url = urlBase }.Initialize())
{
ds.Conventions.FailoverBehavior = FailoverBehavior.ReadFromAllServers;
}
有没有我可以在web.config中设置的FailoverBehavior全球范围内,像或许,这样我就不必每次我创建DocumentStore的新实例的时间来做到这一点的方法吗?