http: // www.
f = function () {for (i in 1: 10000) cat (i) return (1)
Каков рекомендуемый образ жизни для сеанса работы с документами raven и хранения в системе windsor ioc, wcf, размещенной в IIS?
Я постоянно вижу эту ошибку:
Error TempPathInUse (JET_errTempPathInUse, Temp path already used by another database instance)`
вот моя настройка:
public class RavenInstaller : IWindsorInstaller
{
public void Install(IWindsorContainer container, IConfigurationStore store)
{
container.Register(
Component.For().ImplementedBy()
.DependsOn(new { connectionStringName = "RavenConnectionString" })
.OnCreate(DoInitialisation)
.LifeStyle.Singleton,
Component.For()
.UsingFactoryMethod(GetDocumentSesssion)
.LifeStyle.Transient
);
container.Register(Component.For().ImplementedBy().LifeStyle.Transient);
container.Register(Component.For().ImplementedBy().LifeStyle.Transient);
container.Register(
Component.For().ImplementedBy().LifeStyle.
Transient);
}
static IDocumentSession GetDocumentSesssion(IKernel kernel)
{
var store = kernel.Resolve();
return store.OpenSession();
}
public static void DoInitialisation(IKernel kernel, IDocumentStore store)
{
store.Initialize();
IndexCreation.CreateIndexes(typeof(EventSeries_ByName).Assembly, store);
}
}